cc-4105: added handling for delete dir event

This commit is contained in:
Rudi Grinberg 2012-08-03 11:06:08 -04:00
parent ff56ce3797
commit 5fa6def111
2 changed files with 15 additions and 5 deletions

View file

@ -23,6 +23,7 @@ def main():
sys.exit(0)
wm = pyinotify.WatchManager()
notifier = pyinotify.Notifier(wm)
print("Watching: '%s'" % ldir)
wm.add_watch(ldir, pyinotify.ALL_EVENTS, auto_add=True, rec=True, proc_fun=AT())
notifier.loop()