summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-04-12 15:55:56 +0200
committerRobin Appelman <icewind@owncloud.com>2012-04-12 15:55:56 +0200
commit0466437fa7878fa1681ee01651d7d41cdef7454a (patch)
treed85de0a17710a12f2d02e1acef86a4506da34b0f /lib
parent8cea656ad741e471bd740170b38d6f789831a5df (diff)
downloadnextcloud-server-0466437fa7878fa1681ee01651d7d41cdef7454a.tar.gz
nextcloud-server-0466437fa7878fa1681ee01651d7d41cdef7454a.zip
tests for oc_filesystem
Diffstat (limited to 'lib')
-rw-r--r--lib/filesystem.php8
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