diff --git a/index.js b/index.js index 38c3f82..70135e0 100644 --- a/index.js +++ b/index.js @@ -38,6 +38,10 @@ class SambaClient { workingDir ); } + + async renameFile(path, destination, workingDir) { + return await this.execute("rename", [p.basename(path), p.basename(destination)], p.dirname(workingDir)); + } async deleteFile(fileName) { return await this.execute("del", [fileName], "");