Check if file is overwritten

Michael Geary Mike at DeleteThis.Geary.com
Thu Jun 24 12:00:16 EDT 2004


> | How do i check if a file is overwritten by another program,
> | while my script
> | is running?
> |
> | I have to monitor changes and act on them on the fly.
> |
> | It only has to work on windows,

Tim Golden wrote:
> Does this help? (Warning: long URL)
>
> http://tgolden.sc.sabren.com/python/win32_how_do_i/
> watch_directory_for_changes.html

Tim, that's a good informative page.

One thing you ought to update: The ReadDirectoryChangesW function is
available only on the NT platforms (NT 3.51 SP3+, NT4, 2000, XP), not the
Win9x platforms (95, 98, Me).

-Mike





More information about the Python-list mailing list