diff options
author | kondou <kondou@ts.unde.re> | 2013-08-20 17:20:30 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-20 17:20:30 +0200 |
commit | f1518a54dffb4a309da3952e154b71d4bc9482f8 (patch) | |
tree | b6faeec269eb8904c5c8f42732e5466758fdeb0e /lib/files/mount | |
parent | 65d802329f8307cd010a306073d2d3ffd7dc7b74 (diff) | |
parent | de949b1caa4491a8016ed5e609fc781526fea54d (diff) | |
download | nextcloud-server-f1518a54dffb4a309da3952e154b71d4bc9482f8.tar.gz nextcloud-server-f1518a54dffb4a309da3952e154b71d4bc9482f8.zip |
Merge branch 'master' into clean_up_util
Conflicts:
lib/util.php
Diffstat (limited to 'lib/files/mount')
-rw-r--r-- | lib/files/mount/manager.php | 7 | ||||
-rw-r--r-- | lib/files/mount/mount.php | 7 |
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); + } } |