-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
Use fs-write-stream-atomic
#127
Comments
+1 |
Still not optimal. It now prevents race conflicts, but if the process exits early (eg. by the user force exiting) the temp file is left in place: It should probably be cleaned up. @kevva Would it make sense to open a feature request on that module? |
Does it matter if it's written to the temp dir though? But if it's fixable I don't see why they shouldn't do it. Might as well open a request. |
It's written to the cwd, not a temp dir. Try Ctrl+C a pageres session. |
Oh, they should at least write it to |
Wanna open a ticket there? |
Let's do that for now. I don't see them fixing it in the near-term. |
Hm, I tried to do this, but |
Yeah, but how do we circumvent it nicely? Calling |
We use |
Currently we leave behind corrupt files if the process somewhat fails, this would prevent it.
https:/npm/fs-write-stream-atomic
The text was updated successfully, but these errors were encountered: