aboutsummaryrefslogtreecommitdiffstats
path: root/lib/filesystem.php
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-07-05 11:56:02 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-07-05 11:56:02 -0400
commit9deab8302f4c41daed3db6f3b470480b2710c502 (patch)
treea86a04cb27b08940f91ba8f8c5ed5682f9f93730 /lib/filesystem.php
parent607f1a2738911ace1026c6bc14aa28481a898897 (diff)
downloadnextcloud-server-9deab8302f4c41daed3db6f3b470480b2710c502.tar.gz
nextcloud-server-9deab8302f4c41daed3db6f3b470480b2710c502.zip
Fix bugs in getSource() and implement new target path standard
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