We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1f23c2 commit a762c06Copy full SHA for a762c06
lib/private/Files/Mount/Manager.php
@@ -59,13 +59,14 @@ public function removeMount(string $mountPoint): void {
59
}
60
61
public function moveMount(string $mountPoint, string $target): void {
62
- if (isset($this->mounts[$mountPoint])) {
+ if ($mountPoint !== $target && isset($this->mounts[$mountPoint])) {
63
$this->mounts[$target] = $this->mounts[$mountPoint];
64
+ $this->mounts[$target]->setMountPoint($target);
65
unset($this->mounts[$mountPoint]);
66
+ $this->pathCache->clear();
67
+ $this->inPathCache->clear();
68
+ $this->areMountsSorted = false;
69
- $this->pathCache->clear();
- $this->inPathCache->clear();
- $this->areMountsSorted = false;
70
71
72
/**
0 commit comments