Skip to content
/ mv_rm Public

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

Notifications You must be signed in to change notification settings

BillGR17/mv_rm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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**
});

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published