summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2014-05-21 14:07:49 -0400
committerBjörn Schießle <schiessle@owncloud.com>2014-05-21 14:07:49 -0400
commit14a953fbe01a3d26e1330ea224ab71928a2f93c1 (patch)
tree1e8feffaf4e6deded6c1b54b5565646a70374a6d /lib
parentc586d1f4d550563310b998a724309a6e645e8729 (diff)
parent5f403f3e920ea8f6ed5d0441762b3e4f4a9bd38e (diff)
downloadnextcloud-server-14a953fbe01a3d26e1330ea224ab71928a2f93c1.tar.gz
nextcloud-server-14a953fbe01a3d26e1330ea224ab71928a2f93c1.zip
Merge pull request #8416 from owncloud/sharing_keep_mount_points_visible
[sharing] move the mount point up if the parent folder no longer exists
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) {