AvianFlu / ncp

Asynchronous recursive file copying with Node.js.
MIT License
680 stars 103 forks source link

use fs-extra, so that files can ensureDir() their location before writing #89

Open Pomax opened 9 years ago

Pomax commented 9 years ago

Right now files can get copied into dirs that don't exist (yet), which can lead to FS errors. It would be a good idea to use fs-extra instead of fs, which comes with ensureDir to solve that problem