Skip to content

Commit e0edff8

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)