aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-04-07 19:00:03 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-04-23 12:54:24 +0200
commit72bbb9ca20498eba18d6b6a31ed1de2306f90faf (patch)
treebeb0a0e32aca50a640728e70a8895881c759be6c
parentb02b6d3c236bb015e41447c686acf7167ad037e9 (diff)
downloadnextcloud-server-72bbb9ca20498eba18d6b6a31ed1de2306f90faf.tar.gz
nextcloud-server-72bbb9ca20498eba18d6b6a31ed1de2306f90faf.zip
allow to remove and change mount points
-rw-r--r--lib/private/files/mount/manager.php7
-rw-r--r--lib/private/files/mount/mount.php7
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/private/files/mount/manager.php b/lib/private/files/mount/manager.php
index ff4a336f347..91460b72730 100644
--- a/lib/private/files/mount/manager.php
+++ b/lib/private/files/mount/manager.php
@@ -24,6 +24,13 @@ class Manager {
}
/**
+ * @param string $mountPoint
+ */
+ public function removeMount($mountPoint) {
+ unset($this->mounts[$mountPoint]);
+ }
+
+ /**
* Find the mount for $path
*
* @param $path
diff --git a/lib/private/files/mount/mount.php b/lib/private/files/mount/mount.php
index 0ce2f5975c7..08d5ddf348b 100644
--- a/lib/private/files/mount/mount.php
+++ b/lib/private/files/mount/mount.php
@@ -66,6 +66,13 @@ class Mount {
}
/**
+ * @param string $mountPoint new mount point
+ */
+ public function setMountPoint($mountPoint) {
+ $this->mountPoint = $mountPoint;
+ }
+
+ /**
* create the storage that is mounted
*
* @return \OC\Files\Storage\Storage