perf: don't fetch child mounts when getting node parent

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-04-10 20:27:02 +02:00
parent f8dbe2349a
commit 9125715c56

View file

@ -279,7 +279,7 @@ class Node implements INode {
// 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 */