From 3efdb9844e39d9ba4c0f22050fdc67e5e014fe84 Mon Sep 17 00:00:00 2001 From: DenisaCG Date: Thu, 23 Jan 2025 12:11:37 +0100 Subject: [PATCH] make increment functions protected --- src/s3contents.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/s3contents.ts b/src/s3contents.ts index 4491e71..fbd55f3 100644 --- a/src/s3contents.ts +++ b/src/s3contents.ts @@ -336,7 +336,7 @@ export class Drive implements Contents.IDrive { return data; } - incrementUntitledName( + protected incrementUntitledName( contents: Contents.IModel, options: Contents.ICreateOptions ): string { @@ -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 = ''; @@ -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,