How to safely maintain a status file

Christian Heimes lists at cheimes.de
Mon Jul 9 10:17:52 CEST 2012


Am 09.07.2012 07:50, schrieb Plumo:
>> Windows doesn't suppport atomic renames if the right side exists.  I
>> suggest that you implement two code paths:
>
> Problem is if the process is stopped between unlink and rename there
> would no status file.

Yeah, you have to suffer all of Windows' design flaws. You could add a
backup status file or use a completely different approach.




More information about the Python-list mailing list