summaryrefslogtreecommitdiffstats
path: root/lib/files/mount/mount.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/files/mount/mount.php')
-rw-r--r--lib/files/mount/mount.php7
1 files changed, 7 insertions, 0 deletions
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);
+ }
}