Re: WANTED: logging of all file operations on Windows

2006-07-10 Thread Tim Golden
[Tim Golden] >> On the offchance that you haven't seen it, you might >> look at this: >> >> http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_changes.html#use_readdirectorychanges >> [Claudio Grondi] > It seems, that it will be necessary to use some logic based on the > sequence

Re: WANTED: logging of all file operations on Windows

2006-07-10 Thread Tim Golden
Claudio Grondi wrote: > Here a small update to the code at > http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_changes.html#use_readdirectorychanges > : > > ACTIONS = { >1 : "Created", >2 : "Deleted", >3 : "Updated", >4 : "Renamed from something" >5 : "Renamed to

Re: WANTED: logging of all file operations on Windows

2006-07-10 Thread Claudio Grondi
Tim Golden wrote: > Claudio Grondi wrote: > >> I am aware, that it is maybe the wrong group to ask this question, but >> as I would like to know the history of past file operations from >> within a Python script I see a chance, that someone in this group was >> into it already and is so kind to

Re: WANTED: logging of all file operations on Windows

2006-07-09 Thread Claudio Grondi
Tim Golden wrote: > Claudio Grondi wrote: > >> I am aware, that it is maybe the wrong group to ask this question, but >> as I would like to know the history of past file operations from >> within a Python script I see a chance, that someone in this group was >> into it already and is so kind to

Re: WANTED: logging of all file operations on Windows

2006-07-09 Thread Claudio Grondi
faulkner wrote: > you want a directory watching daemon. it isn't hard at all to build > from scratch. > first, determine which directories should be watched. > then, os.walk each directory, building a mapping from filename to mtime > [modified time; os.path.getmtime]. > next is your main event loop

Re: WANTED: logging of all file operations on Windows

2006-07-09 Thread Paul McGuire
"faulkner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > you want a directory watching daemon. it isn't hard at all to build > from scratch. > first, determine which directories should be watched. > then, os.walk each directory, building a mapping from filename to mtime > [modified

Re: WANTED: logging of all file operations on Windows

2006-07-09 Thread Paul McGuire
"faulkner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > you want a directory watching daemon. it isn't hard at all to build > from scratch. > first, determine which directories should be watched. > then, os.walk each directory, building a mapping from filename to mtime > [modified

Re: WANTED: logging of all file operations on Windows

2006-07-09 Thread Tim Golden
Claudio Grondi wrote: > I am aware, that it is maybe the wrong group to ask this question, but > as I would like to know the history of past file operations from within > a Python script I see a chance, that someone in this group was into it > already and is so kind to share here his experience.

Re: WANTED: logging of all file operations on Windows

2006-07-09 Thread faulkner
you want a directory watching daemon. it isn't hard at all to build from scratch. first, determine which directories should be watched. then, os.walk each directory, building a mapping from filename to mtime [modified time; os.path.getmtime]. next is your main event loop. this while loop consists o

WANTED: logging of all file operations on Windows

2006-07-09 Thread Claudio Grondi
I am aware, that it is maybe the wrong group to ask this question, but as I would like to know the history of past file operations from within a Python script I see a chance, that someone in this group was into it already and is so kind to share here his experience. I have put already much eff