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
fs.readir
fs.readfile
fs.writefile
ncp locks the file descriptor and fires a callback when it hasn't been unlocked yet.
I recommend to use the recursive-copy module instead. It supports events and you can be sure in the copy ending.