summaryrefslogtreecommitdiffstats
path: root/lib/files/mount
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-19 17:30:56 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-19 17:30:56 +0200
commitcbeccb2fcd3d3d445726c9e0cd5b8e6c8285a1ea (patch)
treea262c1ad4511a04922519a868a7733a7b1794f3a /lib/files/mount
parentc5402f457530577999d1adc1715c76e742ad8aa9 (diff)
parent95e1b62940444eb2a7467d994a7b4366f6e7f2fc (diff)
downloadnextcloud-server-cbeccb2fcd3d3d445726c9e0cd5b8e6c8285a1ea.tar.gz
nextcloud-server-cbeccb2fcd3d3d445726c9e0cd5b8e6c8285a1ea.zip
Merge branch 'master' into readdir-strict-equals
Diffstat (limited to 'lib/files/mount')
-rw-r--r--lib/files/mount/manager.php7
-rw-r--r--lib/files/mount/mount.php7
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/files/mount/manager.php b/lib/files/mount/manager.php
index 25a5fe241cc..4c432dcf724 100644
--- a/lib/files/mount/manager.php
+++ b/lib/files/mount/manager.php
@@ -96,6 +96,13 @@ class Manager {
}
/**
+ * @return Mount[]
+ */
+ public function getAll() {
+ return $this->mounts;
+ }
+
+ /**
* Find mounts by numeric storage id
*
* @param string $id
diff --git a/lib/files/mount/mount.php b/lib/files/mount/mount.php
index 17b0055ee84..0ce2f5975c7 100644
--- a/lib/files/mount/mount.php
+++ b/lib/files/mount/mount.php
@@ -138,4 +138,11 @@ class Mount {
}
return $path;
}
+
+ /**
+ * @param callable $wrapper
+ */
+ public function wrapStorage($wrapper) {
+ $this->storage = $wrapper($this->mountPoint, $this->storage);
+ }
}