frontend/modules/elfind/src/elFinderVolumeLocalFileSystem.class.php
/**
     * Return file path related to root dir
     *
     * @param  string $path file path
     * @return string
     * @author Dmitry (dio) Levashov
     **/
Return file path related to root dir
@param  string $path file path
@return string
@author Dmitry (dio) Levashov
Return file path related to root dir @param string $path file path @return string @author Dmitry ( dio ) Levashov
protected function _relpath($path)
    {
        if ($path === $this->root) {
            return '';
        } else {
            if (strpos($path, $this->root) === 0) {
                return ltrim(substr($path, strlen($this->root)), DIRECTORY_SEPARATOR);
            } else {
                return $path;
            }
        }
    }
protected function _relpath ( $ path ) { if ( $ path === $ this -> root ) { return '' ; } else { if ( strpos ( $ path , $ this -> root ) === 0 ) { return ltrim ( substr ( $ path , strlen ( $ this -> root ) ) , DIRECTORY_SEPARATOR ) ; } else { return $ path ; } } }
Return file path related to root dir
 @param  string $path file path
 @return string
 @author Dmitry (dio) Levashov
Return file path related to root dir @param string $path file path @return string @author Dmitry ( dio ) Levashov
// for link