-
Tim Peters authored
Write backups to a temp file first; flush and fsync when done; only then rename; in case of a crash, no relevant damaged file will be left behind then. And on Windows, Python's os.fsync() is necessary to convince the OS to write anything to disk.
b3f88085
To find the state of this project's repository at the time of any of these versions, check out
the tags.