ncp icon indicating copy to clipboard operation
ncp copied to clipboard

Callback doesn't get called at all

Open hollowdoor opened this issue 9 years ago • 10 comments

While copying a folder I noticed the callback never gets called. I'm not getting errors, but I'd like to do work in that callback once ncp is done.

The copy does happen. Just no calling of the cb.

I have version 2.0.0, and node version v0.10.37

hollowdoor avatar May 30 '15 03:05 hollowdoor

Seems like the callback is working now. ncp is an odd duck. Can I expect that it will keep working? It's deep in a program I have that may, or may not call it. Maybe there wasn't anything to move. Sorry if that's true. Please let me know if my issue has no basis. :)

hollowdoor avatar Jun 05 '15 02:06 hollowdoor

I have the same issue, moving the files works, but the callback is never fired so I've no idea if it finished.

alexcroox avatar Jun 13 '15 22:06 alexcroox

@alexcroox Maybe I was right then. Don't know why it suddenly works for me.

It said in the documentation that the callback was called when there's an error. That seems wrong. How can code continue when the move operation is done? I'll have to review my usage of ncp. I don't want to roll my own implementation.

hollowdoor avatar Jun 19 '15 23:06 hollowdoor

I am experiencing this as well.

ryansturmer avatar Jun 25 '15 18:06 ryansturmer

Me too. Switching over to something else.

jtremback avatar Jan 20 '16 16:01 jtremback

My package fs-extra (https://www.npmjs.com/package/fs-extra) should be a drop in replacement.

jprichardson avatar Jan 20 '16 16:01 jprichardson

I used cpr

jtremback avatar Jan 20 '16 19:01 jtremback

same problem, plugin unusable :/

mbret avatar Mar 24 '16 13:03 mbret

Is this repo being maintained anymore?

AdeshAtole avatar Nov 22 '17 11:11 AdeshAtole

Given the last modified time of the files in master and the 31 outstanding PRs, I'd say no.

The author hasn't done anything else on Github since 2015 also...

alexcroox avatar Nov 22 '17 11:11 alexcroox