/** * @des fs-extra 包实现 * api参考: https://github.com/jprichardson/node-fs-extra */ function fsExtra() { async function copy() { try { await fsEx.copy(path.join(__dirname + '/p'), path.join(__dirname + '/d')) console.log('success'); } catch (error) { console.log(error); } } copy() }
可执行源码: github.com/NameHewei/n…