allow to remove and change mount points
This commit is contained in:
parent
b02b6d3c23
commit
72bbb9ca20
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue