diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-19 16:33:00 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-07-19 16:33:00 +0200 |
commit | b397df202290fa29f506e3394a80164725e2e8e1 (patch) | |
tree | 93160b50c69f20f74dd53eb3f614981b47640f86 /lib/files | |
parent | 02cdd52fb0f4e6544f6f0df2a9d4da3c944e3109 (diff) | |
download | nextcloud-server-b397df202290fa29f506e3394a80164725e2e8e1.tar.gz nextcloud-server-b397df202290fa29f506e3394a80164725e2e8e1.zip |
add option to get the mountmanager from the filesystem
Diffstat (limited to 'lib/files')
-rw-r--r-- | lib/files/filesystem.php | 9 |
1 files changed, 8 insertions, 1 deletions
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 |