From d9c697534d736e7165114a2f250f9ed9527dcf26 Mon Sep 17 00:00:00 2001 From: kondou Date: Tue, 16 Jul 2013 05:56:52 +0200 Subject: Fix some typos --- lib/files/filesystem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/files/filesystem.php') diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 3d7d5abf8fe..1bf7270c7f1 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: @@ -717,7 +717,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 -- cgit v1.2.3 From b397df202290fa29f506e3394a80164725e2e8e1 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 19 Jul 2013 16:33:00 +0200 Subject: add option to get the mountmanager from the filesystem --- lib/files/filesystem.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/files/filesystem.php') diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 1bf7270c7f1..d6ebe7d629a 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -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 -- cgit v1.2.3