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

fix: fallback to copy+truncate on error #53

Merged
merged 1 commit into from
Oct 3, 2019

Conversation

nomiddlename
Copy link
Collaborator

This should make things more reliable in Windows, when another process has the source file open. You get an EBUSY error when you try to delete files that something else is reading, so this code falls back to doing a copy and truncate if the move fails.

@nomiddlename nomiddlename added this to the 2.2.0 milestone Oct 3, 2019
@nomiddlename nomiddlename merged commit 83a9e82 into master Oct 3, 2019
@nomiddlename nomiddlename deleted the copy-truncate-for-windows branch October 3, 2019 22:52
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.

1 participant