Pagekit\Filesystem\Filesystem::getPath PHP Méthode

getPath() public méthode

Gets canonicalized file path or localpath.
public getPath ( string $file, boolean $local = false ) : string | false
$file string
$local boolean
Résultat string | false
    public function getPath($file, $local = false)
    {
        return $this->getPathInfo($file, $local ? 'localpath' : 'pathname') ?: false;
    }