]> source.dussan.org Git - nextcloud-server.git/commitdiff
add option to get the mountmanager from the filesystem
authorRobin Appelman <icewind@owncloud.com>
Fri, 19 Jul 2013 14:33:00 +0000 (16:33 +0200)
committerRobin Appelman <icewind@owncloud.com>
Fri, 19 Jul 2013 14:33:00 +0000 (16:33 +0200)
lib/files/filesystem.php

index 1bf7270c7f17422a787deb6f67cf7c504f83b7d7..d6ebe7d629a6d90e00332e7179f242de678c1f79 100644 (file)
@@ -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