@xiaoerr/io
v0.0.5
Published
xiaoerr io
Downloads
30
Readme
@xiaoerr
npm install @xiaoerr/io
rmdirsSync
Delete all files in the folder
let {rmdirsSync} = require('@xiaoerr/io');
rmdirsSync("./a");
mkdirsSync
Create folder recursively
let {mkdirsSync} = require('@xiaoerr/io');
mkdirsSync("./a/b/c/d");
cpdirsSync
Copy entire folder, callback can control whether each file or folder can be copied
let {cpdirsSync} = require('@xiaoerr/io');
cpdirsSync("./a", "./b", () => true);