From 9deab8302f4c41daed3db6f3b470480b2710c502 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Tue, 5 Jul 2011 11:56:02 -0400 Subject: Fix bugs in getSource() and implement new target path standard --- lib/filesystem.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/filesystem.php') 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 -- cgit v1.2.3