How to implement a file lock ??
Alan Kennedy
alanmk at hotmail.com
Tue Feb 15 05:22:41 EST 2005
[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 )
portalocker - Cross-platform (posix/nt) API for flock-style file locking.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203
HTH,
--
alan kennedy
------------------------------------------------------
email alan: http://xhaus.com/contact/alan
More information about the Python-list
mailing list