fix: also use optimized getFirstNodeyIdInPath for Folder::getFirstNodeById

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/46017/head
Robin Appelman 2 years ago
parent 9c4b959690
commit ffced73a71
  1. 2
      lib/private/Files/Node/Folder.php

@ -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 {

Loading…
Cancel
Save