Allow getting all mount options as array

remotes/origin/etag-endpoint
Robin Appelman 10 years ago
parent 82a62fd249
commit 4f0f175f8b
  1. 9
      lib/private/files/mount/mountpoint.php
  2. 7
      lib/public/files/mount/imountpoint.php

@ -209,4 +209,13 @@ class MountPoint implements IMountPoint {
public function getOption($name, $default) {
return isset($this->mountOptions[$name]) ? $this->mountOptions[$name] : $default;
}
/**
* Get all options for the mount
*
* @return array
*/
public function getOptions() {
return $this->mountOptions;
}
}

@ -64,4 +64,11 @@ interface IMountPoint {
* @return mixed
*/
public function getOption($name, $default);
/**
* Get all options for the mount
*
* @return array
*/
public function getOptions();
}

Loading…
Cancel
Save