public function getRelativeLinkFor($f)
    {
        $fn = is_object($f) ? $f->getFilename() : $f;
        return trim(str_replace($this->localPath, '', $fn), '/');
    }
public function getRelativeLinkFor($f)
    {
        $fn = is_object($f) ? $f->getFilename() : $f;
        return trim(str_replace($this->localPath, '', $fn), '/');
    }
public function getRelativeLinkFor ( $ f ) { $ fn = is_object ( $ f ) ? $ f -> getFilename ( ) : $ f ; return trim ( str_replace ( $ this -> localPath , '' , $ fn ) , '/' ) ; }
Returns the full path and filename, relative to the BaseURL
@param File|string $f
@return string
Returns the full path and filename relative to the BaseURL