From 00b5a150bedd2a1cf459753082d3c31d7b2ce7e6 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 bccde5de9909e..fb9b694a15c0e 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 */