}
self::$mounts[$mountpoint]=array('type'=>$type,'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']);
+ }
+ }
+ }
/**
* get the storage object for a path
}
static public function search($query){
+ self::mountAll();
$files=array();
$fakeRoot=self::$fakeRoot;
$fakeRootLength=strlen($fakeRoot);