public static function create($dir, $chmod = null)
    {
        if (!file_exists($dir)) {
            if ($chmod === null) {
                $chmod = self::$defaultChmod;
            }
            mkdir($dir, $chmod, true);
            // php mkdir apply umask on the given mode, so we must to
            // do a chmod manually.
            chmod($dir, $chmod);
            return true;
        }

        return false;
    }
public static function create($dir, $chmod = null)
    {
        if (!file_exists($dir)) {
            if ($chmod === null) {
                $chmod = self::$defaultChmod;
            }
            mkdir($dir, $chmod, true);
            // php mkdir apply umask on the given mode, so we must to
            // do a chmod manually.
            chmod($dir, $chmod);
            return true;
        }

        return false;
    }
public static function create ( $ dir , $ chmod = null ) { if ( ! file_exists ( $ dir ) ) { if ( $ chmod === null ) { $ chmod = self :: $ defaultChmod ; } mkdir ( $ dir , $ chmod , true ) ; // php mkdir apply umask on the given mode, so we must to // do a chmod manually. chmod ( $ dir , $ chmod ) ; return true ; } return false ; }
create a directory.

@return bool false if the directory did already exist
create a directory .