|
|
|
|
@ -59,11 +59,14 @@ class Manager implements IMountManager { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function moveMount(string $mountPoint, string $target): void { |
|
|
|
|
$this->mounts[$target] = $this->mounts[$mountPoint]; |
|
|
|
|
unset($this->mounts[$mountPoint]); |
|
|
|
|
$this->pathCache->clear(); |
|
|
|
|
$this->inPathCache->clear(); |
|
|
|
|
$this->areMountsSorted = false; |
|
|
|
|
if ($mountPoint !== $target) { |
|
|
|
|
$this->mounts[$target] = $this->mounts[$mountPoint]; |
|
|
|
|
$this->mounts[$target]->setMountPoint($target); |
|
|
|
|
unset($this->mounts[$mountPoint]); |
|
|
|
|
$this->pathCache->clear(); |
|
|
|
|
$this->inPathCache->clear(); |
|
|
|
|
$this->areMountsSorted = false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|