Skip to content

Commit

Permalink
Merge pull request #134 from PermanentOrg/122-naming-consistency
Browse files Browse the repository at this point in the history
Use `create` name consistently
  • Loading branch information
slifty committed Apr 13, 2023
2 parents 753138c + 0066e8c commit 338f539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classes/PermanentFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class PermanentFileSystem {
return [];
}

public async makeDirectory(requestedPath: string): Promise<Folder> {
public async createDirectory(requestedPath: string): Promise<Folder> {
if (isRootPath(requestedPath)) {
throw new Error('You cannot create new root level folders via SFTP.');
}
Expand Down
2 changes: 1 addition & 1 deletion src/classes/SftpSessionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ export class SftpSessionHandler {
attrs,
},
);
this.getCurrentPermanentFileSystem().makeDirectory(dirPath)
this.getCurrentPermanentFileSystem().createDirectory(dirPath)
.then(() => {
logger.verbose('Response: Status (OK)', {
reqId,
Expand Down

0 comments on commit 338f539

Please sign in to comment.