summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/common.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-03-05 17:22:48 +0100
committerRobin Appelman <icewind@owncloud.com>2015-03-11 15:06:48 +0100
commit7adda887865d43ea66e4854826cbb64f942af42c (patch)
tree3bae4cebc69d414dee3a8f4c1c025ef1e25e9bd3 /lib/private/files/storage/common.php
parent4f0f175f8b1e8719e4b5858322be3d2e30280add (diff)
downloadnextcloud-server-7adda887865d43ea66e4854826cbb64f942af42c.tar.gz
nextcloud-server-7adda887865d43ea66e4854826cbb64f942af42c.zip
Copy mount options to the storage
Diffstat (limited to 'lib/private/files/storage/common.php')
-rw-r--r--lib/private/files/storage/common.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index 8549d5a1fad..db66feb4609 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -34,6 +34,8 @@ abstract class Common implements \OC\Files\Storage\Storage {
protected $watcher;
protected $storageCache;
+ protected $mountOptions = [];
+
/**
* @var string[]
*/
@@ -512,4 +514,20 @@ abstract class Common implements \OC\Files\Storage\Storage {
throw new InvalidCharacterInPathException();
}
}
+
+ /**
+ * @param array $options
+ */
+ public function setMountOptions(array $options) {
+ $this->mountOptions = $options;
+ }
+
+ /**
+ * @param string $name
+ * @param mixed $default
+ * @return mixed
+ */
+ public function getMountOption($name, $default = null) {
+ return isset($this->mountOptions[$name]) ? $this->mountOptions[$name] : $default;
+ }
}