From b3191de7acdb51e73ffdf5bed1493ae6a2d63120 Mon Sep 17 00:00:00 2001 From: Ramon Candel Date: Wed, 18 Sep 2024 09:20:22 +0200 Subject: [PATCH] Added jsdoc --- src/drive/storage/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/drive/storage/index.ts b/src/drive/storage/index.ts index ce405507..5273d117 100644 --- a/src/drive/storage/index.ts +++ b/src/drive/storage/index.ts @@ -663,6 +663,12 @@ export class Storage { return this.client.get(`/folders/${uuid}/tree`, this.headers()); } + /** + * Checks if the given files already exist in the given folder. + * + * @param {CheckDuplicatedFilesPayload} payload - Payload containing the folder UUID and the list of files to check. + * @return {Promise} - Promise that contains the duplicated files in a list. + */ public checkDuplicatedFiles({ folderUuid, filesList, @@ -676,6 +682,12 @@ export class Storage { ); } + /** + * Checks if the given folders names already exist in the given folder + * + * @param {CheckDuplicatedFolderPayload} payload - Payload containing the folder UUID and the list of folders to check. + * @return {Promise} - Promise that contains the duplicated folders in a list. + */ public checkDuplicatedFolders({ folderUuid, folderNamesList,