public function getRelativePathToCurrentDirectoryParent()
    {
        if ($this->baseDir === $this->currentDir) {
            return DIRECTORY_SEPARATOR;
        }

        $path = realpath($this->currentDir . DIRECTORY_SEPARATOR . '..');

        return $this->getPathRelativeToBaseDir($path) ?: DIRECTORY_SEPARATOR;
    }
public function getRelativePathToCurrentDirectoryParent()
    {
        if ($this->baseDir === $this->currentDir) {
            return DIRECTORY_SEPARATOR;
        }

        $path = realpath($this->currentDir . DIRECTORY_SEPARATOR . '..');

        return $this->getPathRelativeToBaseDir($path) ?: DIRECTORY_SEPARATOR;
    }
public function getRelativePathToCurrentDirectoryParent ( ) { if ( $ this -> baseDir === $ this -> currentDir ) { return DIRECTORY_SEPARATOR ; } $ path = realpath ( $ this -> currentDir . DIRECTORY_SEPARATOR . '..' ) ; return $ this -> getPathRelativeToBaseDir ( $ path ) ? : DIRECTORY_SEPARATOR ; }
Returns path to parent of current directory.

@return string
Returns path to parent of current directory .