blob: b737c5dfa076c61299567dde5a6a9676dc012256 (
plain)
1
2
3
4
5
6
7
8
|
# Example: loops monitoring events forever.
#
import pyinotify
wm = pyinotify.WatchManager()
notifier = pyinotify.Notifier(wm)
wm.add_watch('/tmp', pyinotify.ALL_EVENTS)
notifier.loop()
|