private function getPath($path)
    {
        return $this->root .
            ltrim(
                preg_replace(
                    sprintf('|%s{2,}|', preg_quote(DIRECTORY_SEPARATOR)),
                    DIRECTORY_SEPARATOR,
                    $path
                ),
                DIRECTORY_SEPARATOR
            );
    }
private function getPath($path)
    {
        return $this->root .
            ltrim(
                preg_replace(
                    sprintf('|%s{2,}|', preg_quote(DIRECTORY_SEPARATOR)),
                    DIRECTORY_SEPARATOR,
                    $path
                ),
                DIRECTORY_SEPARATOR
            );
    }
private function getPath ( $ path ) { return $ this -> root . ltrim ( preg_replace ( sprintf ( '|%s{2,}|' , preg_quote ( DIRECTORY_SEPARATOR ) ) , DIRECTORY_SEPARATOR , $ path ) , DIRECTORY_SEPARATOR ) ; }
Get the full path.

@param string $path

@return string
Get the full path .