ncp icon indicating copy to clipboard operation
ncp copied to clipboard

Option for synchronous?

Open mm-gmbd opened this issue 9 years ago • 2 comments

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.

mm-gmbd avatar Feb 18 '16 21:02 mm-gmbd

UP +1

nodkz avatar May 31 '16 18:05 nodkz

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.

nodkz avatar May 31 '16 18:05 nodkz