[python-win32] Detect new/changed file in a folder

Tim Golden mail at timgolden.me.uk
Tue Mar 8 16:29:36 CET 2011


On 08/03/2011 15:15, python at bdurham.com wrote:
> I'm looking for advice on ways to have a script detect new or changed
>  files in a specific folder. The easy way is to simply poll every
> second and to sleep between polling cycles. Is there a win32
> technique that works from XP forward that might be a better choice?
> And/or are there issues with a simple polling technique that I should
> be aware of?

Brian Curtin's just written about this very subject:

 
http://blog.briancurtin.com/2011/02/18/the-five-year-project-net-filesystemwatcher-clone-for-python/

   http://pypi.python.org/pypi/watcher/

TJG


More information about the python-win32 mailing list