Skip to content

Commit

Permalink
make increment functions protected
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisaCG committed Jan 23, 2025
1 parent 91e0eee commit 3efdb98
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/s3contents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export class Drive implements Contents.IDrive {
return data;
}

incrementUntitledName(
protected incrementUntitledName(
contents: Contents.IModel,
options: Contents.ICreateOptions
): string {
Expand Down Expand Up @@ -471,7 +471,11 @@ export class Drive implements Contents.IDrive {
*
* @param isDir - Whether the object is a directory or a file.
*/
async incrementName(localPath: string, bucketName: string, isDir: boolean) {
protected async incrementName(
localPath: string,
bucketName: string,
isDir: boolean
) {
let fileExtension: string = '';
let originalName: string = '';

Expand Down Expand Up @@ -558,7 +562,10 @@ export class Drive implements Contents.IDrive {
* @returns A promise which resolves with the new name when the
* file is copied.
*/
async incrementCopyName(copiedItemPath: string, bucketName: string) {
protected async incrementCopyName(
copiedItemPath: string,
bucketName: string
) {
const isDir: boolean = await isDirectory(
this._s3Client,
bucketName,
Expand Down

0 comments on commit 3efdb98

Please sign in to comment.