summaryrefslogtreecommitdiffstats
path: root/lib/filesystem.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r--lib/filesystem.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 4116cb93164..c7e2070fa0a 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -214,6 +214,16 @@ class OC_FILESYSTEM{
}
return $foundMountPoint;
}
+
+ /**
+ * get the mountpoint of the storage object
+ * @param OC_FILESTORAGE storage
+ * @return string
+ */
+ static public function getStorageMountPoint($storage){
+ return array_search($storage, self::$storages);
+ }
+
/**
* 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