lib/File.php
public function getDirectory()
    {
        $dir = clone $this;
        $dir->path = str_replace(DIRECTORY_SEPARATOR, '/', dirname($this->path));
        if (!$dir->path) $dir->path = '/';

        return $dir;
    }
public function getDirectory()
    {
        $dir = clone $this;
        $dir->path = str_replace(DIRECTORY_SEPARATOR, '/', dirname($this->path));
        if (!$dir->path) $dir->path = '/';

        return $dir;
    }
public function getDirectory ( ) { $ dir = clone $ this ; $ dir -> path = str_replace ( DIRECTORY_SEPARATOR , '/' , dirname ( $ this -> path ) ) ; if ( ! $ dir -> path ) $ dir -> path = '/' ; return $ dir ; }
Get directory file uri

return File
Get directory file uri