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");