diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-24 15:53:48 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-07-24 15:53:48 +0200 |
commit | ad266a42534eb84a778d1a3a1642db38a4c50325 (patch) | |
tree | cb6190b8d048ffd0431199ed3a8829d0534b4a25 /lib/files/filesystem.php | |
parent | a945ce908b2e8447c4a93b14c711fc066d9e8daf (diff) | |
parent | 651479322b234eefff15031b188b353793cc7af5 (diff) | |
download | nextcloud-server-ad266a42534eb84a778d1a3a1642db38a4c50325.tar.gz nextcloud-server-ad266a42534eb84a778d1a3a1642db38a4c50325.zip |
Merge branch 'master' into sabre-objecttree
Diffstat (limited to 'lib/files/filesystem.php')
-rw-r--r-- | lib/files/filesystem.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 3d7d5abf8fe..d6ebe7d629a 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -8,7 +8,7 @@ /** * Class for abstraction of filesystem functions - * This class won't call any filesystem functions for itself but but will pass them to the correct OC_Filestorage object + * This class won't call any filesystem functions for itself but will pass them to the correct OC_Filestorage object * this class should also handle all the file permission related stuff * * Hooks provided: @@ -148,13 +148,20 @@ class Filesystem { */ private static $loader; - public static function getLoader(){ + public static function getLoader() { if (!self::$loader) { self::$loader = new Loader(); } return self::$loader; } + public static function getMountManager() { + if (!self::$mounts) { + \OC_Util::setupFS(); + } + return self::$mounts; + } + /** * get the mountpoint of the storage object for a path * ( note: because a storage is not always mounted inside the fakeroot, the @@ -717,7 +724,7 @@ class Filesystem { /** * Get the path of a file by id * - * Note that the resulting path is not guarantied to be unique for the id, multiple paths can point to the same file + * Note that the resulting path is not guaranteed to be unique for the id, multiple paths can point to the same file * * @param int $id * @return string |