src/File/AbstractResourceFile.php
public function getRelativePath(File $base_dir) {
        return FileSystem::getFileSystem()->makePathRelative($this->file->getAbsoluteFile()->getParent(), $base_dir->getAbsolutePath()) . $this->file->getName();
    }
public function getRelativePath(File $base_dir) {
        return FileSystem::getFileSystem()->makePathRelative($this->file->getAbsoluteFile()->getParent(), $base_dir->getAbsolutePath()) . $this->file->getName();
    }
public function getRelativePath ( File $ base_dir ) { return FileSystem :: getFileSystem ( ) -> makePathRelative ( $ this -> file -> getAbsoluteFile ( ) -> getParent ( ) , $ base_dir -> getAbsolutePath ( ) ) . $ this -> file -> getName ( ) ; }
Returns the relative path
@param File $base_dir The base_dir to be based upon for relative path calculation
@return string the relative path
Returns the relative path