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

Implement MoveFileEx or other atomic rename #57

Merged
merged 12 commits into from
Feb 7, 2016
Merged

Conversation

opalmer
Copy link
Owner

@opalmer opalmer commented Feb 4, 2016

This PR implements the Windows MoveFileEx function. This will be something that twisted.python.lockfile can end up using to replace some code. It's still not perfect in terms of providing atomic operations but it's the most compatible.

NOTE: Atomic renames are not always possible on Windows, the point should be to make the best effort.

References

@opalmer opalmer self-assigned this Feb 4, 2016
@opalmer opalmer added this to the 0.1.3 milestone Feb 4, 2016
@codecov-io
Copy link

Current coverage is 95.68%

Merging #57 into master will decrease coverage by -0.77% as of ca2ca89

Powered by Codecov. Updated on successful CI builds.

@opalmer opalmer changed the title Implement MoveFileEx Implement MoveFileEx or other atomic rename Feb 4, 2016
@opalmer opalmer mentioned this pull request Feb 7, 2016
opalmer added a commit that referenced this pull request Feb 7, 2016
Implement MoveFileEx or other atomic rename
@opalmer opalmer merged commit 57b5799 into master Feb 7, 2016
@opalmer opalmer deleted the implement_movefileex branch February 7, 2016 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants