ncp
ncp copied to clipboard
Option for synchronous?
First, thanks for the great tool.
I'm using ncp to copy all contents of one folder to another, and have created a gulp task to do so. I would like to include this gulp task in the middle of a sequence of gulp tasks (using runSequence), but considering it is asynchronous, the next gulp task in the sequence begins before ncp is complete, causing problems. An option to make the call synchronous would be great.
UP +1
Found better lib https://www.npmjs.com/package/fs-extra#copy
It has copySync.
BTW this lib cover rimraf module, which remove non empty dirs.