-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callback called multiple times, but not always #111
Comments
I also noticed strange behavior... Look at the results, numbers are assigned before staring any copy actions:
And ugly debug code:
|
Same issue. Outstanding for a year?
The Typescript code below ends up logging
|
Switching to https://github.com/jprichardson/node-fs-extra/blob/HEAD/docs/copy.md |
Not sure how to replicate; I am running a test for another project where I'm using ncp to duplicate a file directory (so the original sample isn't modified for the test). I am getting an error on some (but not all) of my tests that "Done is being called multiple times", and I can verify that behavior by passing my own function in the callback and logging every time it's called. It appears to be just happening on one of the project directories that I'm copying.
In any case, there's no instance ever that a callback should be called more than once, so this is a bug.
The text was updated successfully, but these errors were encountered: