diff options
author | Robin Appelman <robin@icewind.nl> | 2017-04-26 14:53:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-28 09:38:21 +0200 |
commit | ab9a36e872173b34be2e678de0c452885e3b48d8 (patch) | |
tree | 76e34c578bfdde6ab46164f9e4227e4fe0cc351e /lib | |
parent | 9da697b11af2928a1470dcedc7ebf77e4a5f0730 (diff) | |
download | nextcloud-server-ab9a36e872173b34be2e678de0c452885e3b48d8.tar.gz nextcloud-server-ab9a36e872173b34be2e678de0c452885e3b48d8.zip |
allow apps to set custom mount types
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Mount/MountPoint.php | 4 | ||||
-rw-r--r-- | lib/public/Files/Mount/IMountPoint.php | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/Files/Mount/MountPoint.php b/lib/private/Files/Mount/MountPoint.php index 42b79596c98..e7a37e382ff 100644 --- a/lib/private/Files/Mount/MountPoint.php +++ b/lib/private/Files/Mount/MountPoint.php @@ -274,4 +274,8 @@ class MountPoint implements IMountPoint { public function getMountId() { return $this->mountId; } + + public function getMountType() { + return ''; + } } diff --git a/lib/public/Files/Mount/IMountPoint.php b/lib/public/Files/Mount/IMountPoint.php index 0876d8b11d6..47830c68ffb 100644 --- a/lib/public/Files/Mount/IMountPoint.php +++ b/lib/public/Files/Mount/IMountPoint.php @@ -119,4 +119,13 @@ interface IMountPoint { * @since 9.1.0 */ public function getMountId(); + + /** + * Get the type of mount point, used to distinguish things like shares and external storages + * in the web interface + * + * @return string + * @since 12.0.0 + */ + public function getMountType(); } |