How to tell when a file is opened

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Apr 7 15:02:50 EDT 2007


Adam wrote:

> On Apr 7, 5:09 pm, Tim Golden <m... at timgolden.me.uk> wrote:

> > Adam wrote:

> > > I want to know if it possible to tell when a file is opened. However I
> > > don't want it to be the last access time. I want to know how many
> > > times a file opened so I can generate statistics of file usage.

You may look into some tools like FileMon and Process Monitor from
www.sysinternals.com; I think that doing the processing in Python
would slow down your system a lot (or not, just try!)

--
Gabriel Genellina




More information about the Python-list mailing list