Monitoring a directory for changes

Reinhold Birkenfeld reinhold-birkenfeld-nospam at wolke7.net
Tue Sep 20 13:55:41 EDT 2005


Florian Lindner wrote:
> Hello,
> is there a python lib (preferably in the std lib) to monitor a directory for
> changes (adding / deleting files) for Linux 2.6?

There isn't, but if you don't want to use dnotify/inotify, it is trivial to
implement: use a timer and check the listdir() return value.

Reinhold



More information about the Python-list mailing list