summaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-19 16:33:00 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-19 16:33:00 +0200
commitb397df202290fa29f506e3394a80164725e2e8e1 (patch)
tree93160b50c69f20f74dd53eb3f614981b47640f86 /lib/files
parent02cdd52fb0f4e6544f6f0df2a9d4da3c944e3109 (diff)
downloadnextcloud-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.php9
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