summaryrefslogtreecommitdiffstats
path: root/lib/filesystem.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r--lib/filesystem.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index c8bafb2b58a..3bb0239e9f1 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -175,7 +175,7 @@ class OC_FILESYSTEM{
* @param string path
* @return OC_FILESTORAGE
*/
- static private function getStorage($path){
+ static public function getStorage($path){
$mountpoint=self::getMountPoint($path);
if($mountpoint){
return self::$storages[$mountpoint];
@@ -189,7 +189,7 @@ class OC_FILESYSTEM{
* @param string path
* @return string
*/
- static private function getMountPoint($path){
+ static public function getMountPoint($path){
if(!$path){
$path='/';
}
@@ -214,6 +214,7 @@ class OC_FILESYSTEM{
}
return $foundMountPoint;
}
+
/**
* return the path to a local version of the file
* we need this because we can't know if a file is stored local or not from outside the filestorage and for some purposes a local file is needed