Skip to content

Commit 9782f37

Browse files
authored
Merge pull request #38 from QuantStack/protected
Make increment functions protected
2 parents 6e07065 + 3efdb98 commit 9782f37

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/s3contents.ts

+10-3
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export class Drive implements Contents.IDrive {
336336
return data;
337337
}
338338

339-
incrementUntitledName(
339+
protected incrementUntitledName(
340340
contents: Contents.IModel,
341341
options: Contents.ICreateOptions
342342
): string {
@@ -471,7 +471,11 @@ export class Drive implements Contents.IDrive {
471471
*
472472
* @param isDir - Whether the object is a directory or a file.
473473
*/
474-
async incrementName(localPath: string, bucketName: string, isDir: boolean) {
474+
protected async incrementName(
475+
localPath: string,
476+
bucketName: string,
477+
isDir: boolean
478+
) {
475479
let fileExtension: string = '';
476480
let originalName: string = '';
477481

@@ -558,7 +562,10 @@ export class Drive implements Contents.IDrive {
558562
* @returns A promise which resolves with the new name when the
559563
* file is copied.
560564
*/
561-
async incrementCopyName(copiedItemPath: string, bucketName: string) {
565+
protected async incrementCopyName(
566+
copiedItemPath: string,
567+
bucketName: string
568+
) {
562569
const isDir: boolean = await isDirectory(
563570
this._s3Client,
564571
bucketName,

0 commit comments

Comments
 (0)