Skip to content
Moves files to a new folder and deletes the old folder afterwards
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
main.js
package.json

README.md

mv_rm

Moves files to a new folder and deletes the old folder afterwards

How to use:

const mv_rm = require("mv_rm");
mv_rm("/path/old/", "/path/new", { //       set the old path and the new path
  permissions: "0755", //                   sets new folder permissions **default 0755**
  file_permissions: "0777", //              sets new file permissions **default 0644**
  files: ["this.jpg", "that.png"], //       get only these files (if this is empty then it will move all the files from the folder) **default []**
  folders: true //                          moves files with folders recursively **default false**
});

You can’t perform that action at this time.