是否有一个文件夹及其内容全部复制,而无需手动做的序列更简单的方法fs.readir
,fs.readfile
,fs.writefile
递归?
只是想知道我是否缺少理想地像这样工作的功能
fs.copy("/path/to/source/folder","/path/to/destination/folder");
在node.js中递归复制文件夹
是否有一个文件夹及其内容全部复制,而无需手动做的序列更简单的方法fs.readir
,fs.readfile
,fs.writefile
递归?
只是想知道我是否缺少理想地像这样工作的功能
fs.copy("/path/to/source/folder","/path/to/destination/folder");
第4009篇《在node.js中递归复制文件夹》来自Winter(https://github.com/aiyld/aiyld.github.io)的站点
您可以使用ncp模块。我觉得这就是你所需要的
相似问题
问题类别
fs-extra
什么时候为我工作,ncp
并wrench
没有做到:https://www.npmjs.com/package/fs-extra