Check file is locked?

Christian Heimes lists at cheimes.de
Tue Jul 7 16:07:32 EDT 2009


dudeja.rajat at gmail.com wrote:
> How to check if a particular file is locked by some application? (i.e. the
> file is opened by some application)?

It depends on your operating system. By the way most operating systems
don't lock a file when it's opened for reading or writing or even executed.

Christian




More information about the Python-list mailing list