diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-28 18:47:17 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-04 15:40:16 +0200 |
commit | 44a8ebdc1fa796d4f7dc453c58561b64902ca12f (patch) | |
tree | b2dc883aa3c8d8ff36c89cda9be16f0aad242bfc /lib/public/Files/IRootFolder.php | |
parent | 700444e21801002cc24093229d8ac7714d2e1486 (diff) | |
download | nextcloud-server-44a8ebdc1fa796d4f7dc453c58561b64902ca12f.tar.gz nextcloud-server-44a8ebdc1fa796d4f7dc453c58561b64902ca12f.zip |
optimize getById on LazyUserFolder to not require a full fs setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/Files/IRootFolder.php')
-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); } |