Skip to content
Snippets Groups Projects
Commit bc90a34b authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

remove duplicate method

parent 59eb693e
No related branches found
No related tags found
No related merge requests found
......@@ -358,20 +358,6 @@ class OC_Filesystem{
return $newpath;
}
/**
* return path to file which reflects one visible in browser
* @param string path
* @return string
*/
static public function getLocalPath($path) {
$datadir = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser().'/files';
$newpath = $path;
if (strncmp($newpath, $datadir, strlen($datadir)) == 0) {
$newpath = substr($path, strlen($datadir));
}
return $newpath;
}
/**
* check if the requested path is valid
* @param string path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment