How to check if file is in use?

Gerhard Häring gh at ghaering.de
Tue Jul 10 11:33:10 EDT 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