summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/mount/mount.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/files/mount/mount.php b/lib/private/files/mount/mount.php
index 256630726d2..d4a4e186fb9 100644
--- a/lib/private/files/mount/mount.php
+++ b/lib/private/files/mount/mount.php
@@ -59,6 +59,8 @@ class Mount {
}
/**
+ * get complete path to the mount point, relative to data/
+ *
* @return string
*/
public function getMountPoint() {
@@ -66,6 +68,15 @@ class Mount {
}
/**
+ * get name of the mount point
+ *
+ * @return string
+ */
+ public function getMountPointName() {
+ return basename(rtrim($this->mountPoint, '/'));
+ }
+
+ /**
* @param string $mountPoint new mount point
*/
public function setMountPoint($mountPoint) {