lib/bagit_manifest.php
private function _makeRelative($filename)
    {
        $rel = substr($filename, strlen($this->pathPrefix));
        if (! $rel) {
            return '';
        } else {
            return $rel;
        }
    }
private function _makeRelative($filename)
    {
        $rel = substr($filename, strlen($this->pathPrefix));
        if (! $rel) {
            return '';
        } else {
            return $rel;
        }
    }
private function _makeRelative ( $ filename ) { $ rel = substr ( $ filename , strlen ( $ this -> pathPrefix ) ) ; if ( ! $ rel ) { return '' ; } else { return $ rel ; } }
This takes a file name and strips the prefix path from it.

This is unsafe, strictly speaking, because it doesn't check that the
file name passed in actually begins with the prefix.

@param string $filename An absolute file name under the bag directory.

@return string The file name with the $pathPrefix.
This takes a file name and strips the prefix path from it .