WANTED: logging of all file operations on Windows

Tim Golden mail at timgolden.me.uk
Mon Jul 10 06:25:49 EDT 2006


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 something",
> }
> 
> The correction above is according to entries:
> #define FILE_ACTION_ADDED                 0x00000001
> #define FILE_ACTION_REMOVED               0x00000002
> #define FILE_ACTION_MODIFIED              0x00000003
> #define FILE_ACTION_RENAMED_OLD_NAME      0x00000004
> #define FILE_ACTION_RENAMED_NEW_NAME      0x00000005
>    in ..\PlatformSDK\Include\WinNT.h
> 
> Claudio Grondi

Thanks. I've updated the site.

TJG



More information about the Python-list mailing list