fix: also use optimized getFirstNodeyIdInPath for Folder::getFirstNodeById

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2024-06-20 17:29:19 +02:00
parent 9c4b959690
commit ffced73a71

View file

@ -289,7 +289,7 @@ class Folder extends Node implements \OCP\Files\Folder {
}
public function getFirstNodeById(int $id): ?\OCP\Files\Node {
return current($this->getById($id)) ?: null;
return $this->root->getFirstNodeByIdInPath($id, $this->getPath());
}
public function getAppDataDirectoryName(): string {