is a file open ?
daniel.dittmar at sap.corp
Wed Jul 20 13:11:04 CEST 2005
> for root, dirs, files in os.walk(path):
> for file in files:
> # ¿ is opened ?
On Linux and some other Unixes, you can probably read the /proc filesystem.
On Windows, you'll probably get the quickest result by running
Either way, the information you'll get is restricted by your permissions.
Either information will get stale really fast, so it's not suitable if
your task is something like 'can I backup this directory or is someone
writing to a file?'
More information about the Python-list