How to check if file is in use?

Gerhard Häring gh at
Tue Jul 10 17:33:10 CEST 2007

loial wrote:
> Is there anyway in pythn to check whether a file is being used/written
> to by another process, e.g like the fuser command?

No, you'll have to use platform-specific methods (like calling fuser 
etc. with the subprocess module).

-- Gerhard

More information about the Python-list mailing list