From b877edafe2cccea60d31b0b35f9bc3636f47c966 Mon Sep 17 00:00:00 2001 From: David <37280718+yeyulantu@users.noreply.github.com> Date: Thu, 18 Aug 2022 12:01:01 +0800 Subject: [PATCH] add misising `remove` method Add missing method when the root instance (in private/Files/Node/Root.php) call unMount. Signed-off-by: David <37280718+yeyulantu@users.noreply.github.com> --- lib/private/Files/Mount/Manager.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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