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

Brian Curtin brian.curtin at gmail.com
Tue Mar 8 16:36:29 CET 2011


On Tue, Mar 8, 2011 at 09:29, Tim Golden <mail at timgolden.me.uk> wrote:

> 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


Thanks for the plug :)
I should also note that watcher now supports Python 2 and 3.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20110308/b8af3862/attachment.html>


More information about the python-win32 mailing list