Skip to content

Commit

Permalink
Added jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Candel authored and Ramon Candel committed Sep 18, 2024
1 parent 21a23b0 commit b3191de
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/drive/storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CheckDuplicatedFilesResponse>} - Promise that contains the duplicated files in a list.
*/
public checkDuplicatedFiles({
folderUuid,
filesList,
Expand All @@ -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<CheckDuplicatedFoldersResponse>} - Promise that contains the duplicated folders in a list.
*/
public checkDuplicatedFolders({
folderUuid,
folderNamesList,
Expand Down

0 comments on commit b3191de

Please sign in to comment.