utlin-hrx-3.1
v1.0.0
Published
<!-- * @Author: your name * @Date: 2021-02-28 17:01:42 * @LastEditTime: 2021-02-28 17:06:39 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \utlin-hrx-3.1\README.md -->
Downloads
1
Readme
郝瑞欣的js文件
你的优乐美
//复制文件夹
function copydir(dir, newdir) {
!fs.existsSync(newdir) && fs.mkdirSync(newdir);
fs.readdirSync(dir).forEach(item => {
let dirname = dir + '/' + item;
let newdirName = newdir + '/' + item;
if (fs.statSync(dirname).isFile()) {
let read = fs.createReadStream(dirname);
} else {
copydir(dirname, newdirName);
}
})
};```