diff options
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r-- | lib/filesystemview.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php index 571c75f8f31..6e76e1b6da5 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -147,6 +147,16 @@ class OC_FilesystemView { return $storage->getLocalFile($this->getInternalPath($path)); } } + /** + * @param string path + * @return string + */ + public function getLocalFolder($path) { + $parent=substr($path, 0, strrpos($path,'/')); + if(OC_Filesystem::isValidPath($parent) and $storage=$this->getStorage($path)) { + return $storage->getLocalFolder($this->getInternalPath($path)); + } + } /** * the following functions operate with arguments and return values identical |