From: Robin Appelman Date: Fri, 19 Jul 2013 14:33:00 +0000 (+0200) Subject: add option to get the mountmanager from the filesystem X-Git-Tag: v6.0.0alpha2~429^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b397df202290fa29f506e3394a80164725e2e8e1;p=nextcloud-server.git add option to get the mountmanager from the filesystem --- 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