diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-01-30 20:29:33 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-01-30 20:29:33 +0100 |
commit | 4522d19b4c214676b8a0d4067c3a2d1bc63618bc (patch) | |
tree | 68725926f48072805e321f3507237df33814472a /lib/filesystem.php | |
parent | 355262635838860f5f17b2cf20132adddd7af77e (diff) | |
parent | 45038af948cd07ffc74efc8d4b0282fa11b7de7e (diff) | |
download | nextcloud-server-4522d19b4c214676b8a0d4067c3a2d1bc63618bc.tar.gz nextcloud-server-4522d19b4c214676b8a0d4067c3a2d1bc63618bc.zip |
merge master into filesystem
Diffstat (limited to 'lib/filesystem.php')
-rw-r--r-- | lib/filesystem.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/filesystem.php b/lib/filesystem.php index f17213cd389..60d3f56a24c 100644 --- a/lib/filesystem.php +++ b/lib/filesystem.php @@ -254,6 +254,17 @@ class OC_Filesystem{ } self::$mounts[$mountpoint]=array('class'=>$class,'arguments'=>$arguments); } + + /** + * create all storage backends mounted in the filesystem + */ + static private function mountAll(){ + foreach(self::$mounts as $mountPoint=>$mount){ + if(!isset(self::$storages[$mountPoint])){ + self::$storages[$mountPoint]=self::createStorage($mount['type'],$mount['arguments']); + } + } + } /** * return the path to a local version of the file |