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 locking issue on Windows #14

Merged
merged 2 commits into from
Oct 13, 2022
Merged

Conversation

MasslessParticle
Copy link
Contributor

@MasslessParticle MasslessParticle commented Oct 12, 2022

Sometime a file is deleted but, instead of deleting the file, Windows puts it into the state DeletePending which isn't detected by this library. This PR detects the DeletePending state and responds by closing the file.

@CLAassistant
Copy link

CLAassistant commented Oct 12, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, is there a way to unit test this?

@MasslessParticle
Copy link
Contributor Author

There is but it would take a re architecture and then it would only be able to test that we close the file when IsDeletePending returns true

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.

None yet

3 participants