Pagekit\Filesystem\Filesystem::getPath PHP Method

getPath() public method

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