Skip to content

fix: fallback to copy+truncate on error - #53

Merged
nomiddlename merged 1 commit into
masterfrom
copy-truncate-for-windows
Oct 3, 2019
Merged

nomiddlename merged 1 commit into
masterfrom
copy-truncate-for-windows

Conversation

@nomiddlename

Copy link
Copy Markdown
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