diff --git a/lib/private/Files/Mount/Manager.php b/lib/private/Files/Mount/Manager.php index 9ba0e50405880..b1a03151ec119 100644 --- a/lib/private/Files/Mount/Manager.php +++ b/lib/private/Files/Mount/Manager.php @@ -73,6 +73,14 @@ public function removeMount(string $mountPoint) { $this->pathCache->clear(); $this->inPathCache->clear(); } + + /** + * @param IMountPoint $mount + */ + public function remove(IMountPoint $mount) + { + $this->removeMount($mount->getMountPoint()); + } /** * @param string $mountPoint