[python-win32] knowing "file accessed" and "file opened"

Aahz aahz at pythoncraft.com
Fri Feb 26 20:52:34 CET 2010


On Fri, Feb 26, 2010, OptiCar wrote:
>
> i need to know when an updated file has been opened.
> is it possible to watch the "OPEN" and "ACCESS" event with an adaptation
> of the Tim Golden's script ?
> need to work on windows, does pywin32 can ?
> inotify is only for linux
> dazuko can catch on linux
> what can work on windows to see the file open and file access event ?

We're using ReadDirectoryChangesW to catch changes; I have no idea
whether that would give the info you want.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Many customs in this life persist because they ease friction and promote
productivity as a result of universal agreement, and whether they are
precisely the optimal choices is much less important." --Henry Spencer


More information about the python-win32 mailing list