diff --git a/src/drive/storage/index.ts b/src/drive/storage/index.ts index ce40550..5273d11 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,