Is there an easier way to copy a folder and all its content without manually doing a sequence of fs.readir
, fs.readfile
, fs.writefile
recursively?
I am just wondering if I'm missing a function which would ideally work like this:
fs.copy("/path/to/source/folder", "/path/to/destination/folder");
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…