fix: fix moving mountpoints

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/57760/head
Robin Appelman 5 months ago
parent e7fcb6c7f5
commit e5f77f004e
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 13
      lib/private/Files/Mount/Manager.php

@ -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;
}
}
/**

Loading…
Cancel
Save