diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-18 23:38:14 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-18 23:38:14 +0100 |
commit | 75e8b39826c9278288b8dc02dc19f0ca060080b6 (patch) | |
tree | dcb2081b7b8779333d11b3adbf03d6b2c0ea4c76 /lib/public | |
parent | 891474b0d6b8cc77a8480cd91f1e48ad3bc3e73b (diff) | |
parent | 2eab0f21211762869db74891c2e2611f96bfef15 (diff) | |
download | nextcloud-server-75e8b39826c9278288b8dc02dc19f0ca060080b6.tar.gz nextcloud-server-75e8b39826c9278288b8dc02dc19f0ca060080b6.zip |
Merge pull request #12879 from owncloud/mountconfig
Add mount specific options
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/files/fileinfo.php | 7 | ||||
-rw-r--r-- | lib/public/files/mount/imountpoint.php | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/public/files/fileinfo.php b/lib/public/files/fileinfo.php index 3a407ed67ca..ec68ed475c5 100644 --- a/lib/public/files/fileinfo.php +++ b/lib/public/files/fileinfo.php @@ -169,4 +169,11 @@ interface FileInfo { * @return bool */ public function isMounted(); + + /** + * Get the mountpoint the file belongs to + * + * @return \OCP\Files\Mount\IMountPoint + */ + public function getMountPoint(); } diff --git a/lib/public/files/mount/imountpoint.php b/lib/public/files/mount/imountpoint.php index dac634bae4c..af7819ae160 100644 --- a/lib/public/files/mount/imountpoint.php +++ b/lib/public/files/mount/imountpoint.php @@ -55,4 +55,13 @@ interface IMountPoint { * @param callable $wrapper */ public function wrapStorage($wrapper); + + /** + * Get a mount option + * + * @param string $name Name of the mount option to get + * @param mixed $default Default value for the mount option + * @return mixed + */ + public function getOption($name, $default); } |