Locking a file under Windows

Guy Lateur guy.lateur at b-b.be
Thu Nov 24 12:46:43 EST 2005


Correction: it's probably best to use the Flock class by John Nielsen. Much 
cleaner and working great. Info can be found here: 
http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/pywin32/Windows_NT_Files_.2d.2d_Locking.html


Best regards,
g


"Guy Lateur" <guy.lateur at b-b.be> schreef in bericht 
news:qKlhf.56244$Hp7.3644537 at phobos.telenet-ops.be...
>
> I guess it'd be better if I use the second suggestion, i.e. temporarily 
> renaming the file for writing, and renaming it back to unlock it.
>
> Cheers,
> g
>
>
> 




More information about the Python-list mailing list