File: loop.py

package info (click to toggle)
pyinotify 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,076 kB
  • ctags: 5,038
  • sloc: python: 2,094; makefile: 43; sh: 6
file content (8 lines) | stat: -rw-r--r-- 187 bytes parent folder | download
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()