src/Core/Manifest/ManifestFileFinder.php
protected function upLevels($pathname, $depth)
    {
        if ($depth < 0) {
            return null;
        }
        while ($depth--) {
            $pathname = dirname($pathname);
        }
        return $pathname;
    }
protected function upLevels($pathname, $depth)
    {
        if ($depth < 0) {
            return null;
        }
        while ($depth--) {
            $pathname = dirname($pathname);
        }
        return $pathname;
    }
protected function upLevels ( $ pathname , $ depth ) { if ( $ depth < 0 ) { return null ; } while ( $ depth -- ) { $ pathname = dirname ( $ pathname ) ; } return $ pathname ; }
Get a parent path the given levels above

@param string $pathname
@param int $depth Number of parents to rise
@return string
Get a parent path the given levels above