Skip to content

Commit 0a74753

Browse files
committed
perf: don't fetch child mounts when getting node parent
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 5b81ada commit 0a74753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/Node/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public function getParent(): INode|IRootFolder {
280280

281281
// Manually fetch the parent if the current node doesn't have a file info yet
282282
try {
283-
$fileInfo = $this->getFileInfo();
283+
$fileInfo = $this->getFileInfo(false);
284284
} catch (NotFoundException) {
285285
$this->parent = $this->root->get($newPath);
286286
/** @var \OCP\Files\Folder $this->parent */

0 commit comments

Comments
 (0)