Pagekit\Filesystem\Adapter\FileAdapter::getPathInfo PHP Method

getPathInfo() public method

public getPathInfo ( array $info )
$info array
    public function getPathInfo(array $info)
    {
        $info['localpath'] = $info['pathname'];
        if ($info['root'] === '') {
            $path = $this->path;
            if (substr($path, -1) != '/') {
                $path .= '/';
            }
            $info['localpath'] = $path . $info['path'];
        }
        if ($info['localpath'] and file_exists($info['localpath'])) {
            if (strpos($info['localpath'], $this->path) === 0) {
                $info['url'] = $this->url . strtr(rawurlencode(substr($info['localpath'], strlen($this->path))), ['%2F' => '/']);
            }
        }
        return $info;
    }