From 9125715c5625dfd8f2f619d56f76ab54820e9784 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 10 Apr 2026 20:27:02 +0200 Subject: [PATCH] perf: don't fetch child mounts when getting node parent Signed-off-by: Robin Appelman --- lib/private/Files/Node/Node.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Node/Node.php b/lib/private/Files/Node/Node.php index 4120e86889cf1..40bd0626542c7 100644 --- a/lib/private/Files/Node/Node.php +++ b/lib/private/Files/Node/Node.php @@ -279,7 +279,7 @@ public function getParent(): INode|IRootFolder { // Manually fetch the parent if the current node doesn't have a file info yet try { - $fileInfo = $this->getFileInfo(); + $fileInfo = $this->getFileInfo(false); } catch (NotFoundException) { $this->parent = $this->root->get($newPath); /** @var \OCP\Files\Folder $this->parent */