src/Textpattern/Composer/Installer/Plugin/Base.php
protected function path($path)
    {
        if (strpos($path, './') === 0) {
            return $this->dir . '/' . substr($path, 2);
        }

        if (strpos($path, '../') === 0) {
            return dirname($this->dir) . '/' . substr($path, 3);
        }

        return $path;
    }
protected function path($path)
    {
        if (strpos($path, './') === 0) {
            return $this->dir . '/' . substr($path, 2);
        }

        if (strpos($path, '../') === 0) {
            return dirname($this->dir) . '/' . substr($path, 3);
        }

        return $path;
    }
protected function path ( $ path ) { if ( strpos ( $ path , './' ) === 0 ) { return $ this -> dir . '/' . substr ( $ path , 2 ) ; } if ( strpos ( $ path , '../' ) === 0 ) { return dirname ( $ this -> dir ) . '/' . substr ( $ path , 3 ) ; } return $ path ; }
Forms absolute file path.

@param  string $path
@return string
Forms absolute file path .