From 54ff7f8780eaa95b8d1d696d6b851e9101b0aeba 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 9f0e14462d9e8..597dbc3a03290 100644 --- a/lib/private/Files/Node/Node.php +++ b/lib/private/Files/Node/Node.php @@ -284,7 +284,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 */