diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-28 19:47:17 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-04 16:40:16 +0300 |
commit | 44a8ebdc1fa796d4f7dc453c58561b64902ca12f (patch) | |
tree | b2dc883aa3c8d8ff36c89cda9be16f0aad242bfc /lib/public | |
parent | 700444e21801002cc24093229d8ac7714d2e1486 (diff) |
optimize getById on LazyUserFolder to not require a full fs setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Files/IRootFolder.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/public/Files/IRootFolder.php b/lib/public/Files/IRootFolder.php index f89a0041146..7d007cb690c 100644 --- a/lib/public/Files/IRootFolder.php +++ b/lib/public/Files/IRootFolder.php @@ -38,11 +38,22 @@ interface IRootFolder extends Folder, Emitter { * Returns a view to user's files folder * * @param string $userId user ID - * @return \OCP\Files\Folder + * @return Folder * @throws NoUserException * @throws NotPermittedException * * @since 8.2.0 */ public function getUserFolder($userId); + + /** + * Get a file or folder by fileid, inside a parent path + * + * @param int $id + * @param string $path + * @return Node[] + * + * @since 24.0.0 + */ + public function getByIdInPath(int $id, string $path); } |