How to safely maintain a status file

Chris Angelico rosuav at gmail.com
Thu Jul 12 22:12:01 EDT 2012


On Fri, Jul 13, 2012 at 11:20 AM, Rick Johnson
<rantingrickjohnson at gmail.com> wrote:
> On Jul 12, 2:39 pm, Christian Heimes <li... at cheimes.de> wrote:
>> Windows's file system layer is not POSIX compatible. For example
>> you can't remove or replace a file while it is opened by a process.
>
> Sounds like a reasonable fail-safe to me.

POSIX says that files and file names are independent. I can open a
file based on its name, delete the file based on its name, and still
have the open file there. When it's closed, it'll be wiped from the
disk.

ChrisA



More information about the Python-list mailing list