From 5f403f3e920ea8f6ed5d0441762b3e4f4a9bd38e Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Wed, 30 Apr 2014 16:56:09 +0200 Subject: move the mount point up if a share is mounted to a subfolder and the subfolder no longer exists --- lib/private/files/mount/mount.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib') 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,12 +59,23 @@ class Mount { } /** + * get complete path to the mount point, relative to data/ + * * @return string */ public function getMountPoint() { return $this->mountPoint; } + /** + * get name of the mount point + * + * @return string + */ + public function getMountPointName() { + return basename(rtrim($this->mountPoint, '/')); + } + /** * @param string $mountPoint new mount point */ -- cgit v1.2.3