diff --git a/lib/private/files/mount/manager.php b/lib/private/files/mount/manager.php index ff4a336f34740e0ab417b878c086a81b164b31c9..91460b72730cbf735ee865cdc6c98ad33f37067a 100644 --- a/lib/private/files/mount/manager.php +++ b/lib/private/files/mount/manager.php @@ -23,6 +23,13 @@ class Manager { $this->mounts[$mount->getMountPoint()] = $mount; } + /** + * @param string $mountPoint + */ + public function removeMount($mountPoint) { + unset($this->mounts[$mountPoint]); + } + /** * Find the mount for $path * diff --git a/lib/private/files/mount/mount.php b/lib/private/files/mount/mount.php index 0ce2f5975c719ae93347cf7dd208e01a8d4e172e..08d5ddf348be9e850904941a538ba53d3c20a1ec 100644 --- a/lib/private/files/mount/mount.php +++ b/lib/private/files/mount/mount.php @@ -65,6 +65,13 @@ class Mount { return $this->mountPoint; } + /** + * @param string $mountPoint new mount point + */ + public function setMountPoint($mountPoint) { + $this->mountPoint = $mountPoint; + } + /** * create the storage that is mounted *