module/Core/src/Grid/Core/Model/FileSystem.php
public function createDir( $path )
    {
        if ( empty( $path ) )
        {
            return false;
        }

        $path = $this->validPath( $path );
        $base = $this->baseUrl . '/' . $path;
        $full = $this->baseDir . '/' . $base;

        if ( ! is_dir( $full ) && ! is_file( $full ) )
        {
            $rights = $this->rights( $path );

            if ( $rights->write && @ mkdir( $full, 0777, true ) )
            {
                return $path;
            }
        }

        return false;
    }
public function createDir( $path )
    {
        if ( empty( $path ) )
        {
            return false;
        }

        $path = $this->validPath( $path );
        $base = $this->baseUrl . '/' . $path;
        $full = $this->baseDir . '/' . $base;

        if ( ! is_dir( $full ) && ! is_file( $full ) )
        {
            $rights = $this->rights( $path );

            if ( $rights->write && @ mkdir( $full, 0777, true ) )
            {
                return $path;
            }
        }

        return false;
    }
public function createDir ( $ path ) { if ( empty ( $ path ) ) { return false ; } $ path = $ this -> validPath ( $ path ) ; $ base = $ this -> baseUrl . '/' . $ path ; $ full = $ this -> baseDir . '/' . $ base ; if ( ! is_dir ( $ full ) && ! is_file ( $ full ) ) { $ rights = $ this -> rights ( $ path ) ; if ( $ rights -> write && @ mkdir ( $ full , 0777 , true ) ) { return $ path ; } } return false ; }
Create a dir

@param string $path
@return bool|string failed / new
Create a dir