diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/filesystem.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php index b6909f5acdf..dc678fba74c 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -249,6 +249,14 @@ class OC_Filesystem{ } /** + * clear all mounts and storage backends + */ + public static function clearMounts(){ + self::$mounts=array(); + self::$storages=array(); + } + + /** * mount an OC_Filestorage in our virtual filesystem * @param OC_Filestorage storage * @param string mountpoint |