-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
maintenance_mode_state file always gets deleted under Windows #190
Comments
@williwacker thank you for reporting this. Have you the opportunity to debug this problem better? |
The only thing I could debug was listing the directory files using print() at the end of the "_write_file_atomic" routine, which is called from the "write_file" routine. And after calling the "_write_file_atomic" routine the file is gone from the directory.
|
Could you submit a PR with a failing test case on python-fsutil repo? The CI runs also on Windows, so the error should be reproducible. |
Python version
3.10
Django version
4.2.0
Package version
latest from GIT
Current behavior (bug description)
maintenance_mode_state.txt file gets deleted from directory
Expected behavior
maintenance_mode_state.txt file should be stay
Problem under Windows is that the atomic mode is not working. Therefore I have added a switch checking for the platform and either using atomic or non_atomic write.
In the write_file routine the same problem exists.
Have changed io.py accordingly.
Upvote & Fund
The text was updated successfully, but these errors were encountered: