diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index c0e9d215fb5ddc8d8c73f49665d6257f6de81db7..df904e1f2742933ad9327961d7789a933e690581 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -210,7 +210,7 @@ class Filesystem {
 		return true;
 	}
 
-	/**
+    /**
 	 * Initialize system and personal mount points for a user
 	 *
 	 * @param string $user
@@ -306,6 +306,14 @@ class Filesystem {
 		return self::$defaultInstance;
 	}
 
+    /**
+     * set the default filesystem view
+     *
+     */
+    static public function setView($view) {
+        self::$defaultInstance = $view;
+    }
+
 	/**
 	 * tear down the filesystem, removing all storage providers
 	 */