From 7adda887865d43ea66e4854826cbb64f942af42c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 5 Mar 2015 17:22:48 +0100 Subject: Copy mount options to the storage --- lib/private/files/storage/common.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/private/files/storage/common.php') 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; + } } -- cgit v1.2.3