is there a cross-platform library or module for file locking?
or at least a win32 implementation.
i'm trying to get a lock on some file in a cgi script. ( i got my data
erased a few times :P )
--
ionel.
___
Python-win32 mailing list
Python-win32@pytho
"ionel" <[EMAIL PROTECTED]> wrote:
> is there a cross-platform library or module for file locking?
> or at least a win32 implementation.
for windows, see the third example on this page:
http://www.effbot.org/librarybook/msvcrt.htm
for unix, see:
http://www.effbot.org/librarybook/fcntl.
Hello ionel,
> is there a cross-platform library or module for file locking?
> or at least a win32 implementation.
>
> i'm trying to get a lock on some file in a cgi script. ( i got my data
> erased a few times :P )
I'm using:
-
from os import open as _open, O_CREAT, O_EXCL, O_RDWR
loc