Skip to content
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

lib/copy/ncp.js: use finish event instead of close in writestream when copying file #363

Closed
wants to merge 1 commit into from

Conversation

manidlou
Copy link
Collaborator

This should resolve #357. I provided the argument there. Based on the node docs, I believe for writestreams the finish event is the correct one to use not the close event.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 85.434% when pulling 1897062 on fix-copy-writestream-event into 9fc96fd on master.

@RyanZim
Copy link
Collaborator

RyanZim commented Feb 21, 2017

X-Ref: #327. I'm no expert on streams, so I'm not sure what the correct course of action is.

@manidlou
Copy link
Collaborator Author

I am closing this as a result of discussion in #357. Accordingly it is more appropriate to keep the closeevent and not changing it back to finish.

@manidlou manidlou closed this Feb 21, 2017
@manidlou manidlou deleted the fix-copy-writestream-event branch February 21, 2017 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fs.move fails with chmod error when disk under heavy use
3 participants