|
Revision da4f72c38ed31111d447c64efd78cf500beabf73, 191 bytes
(checked in by Sebastien Martini <ookoi@…>, 6 months ago)
|
|
* Fix segmentation fault reported by dougfort@…, but not
sure if the way it is fixed doesn't introduce limitations on encodings.
* event.pathname represents now an absolute path.
* Fix display of events.
|
-
Property mode set to
100644
|
| Line | |
|---|
| 1 | from pyinotify import * |
|---|
| 2 | |
|---|
| 3 | log.setLevel(10) |
|---|
| 4 | wm = WatchManager() |
|---|
| 5 | notifier = Notifier(wm) |
|---|
| 6 | path = u'/tmp' |
|---|
| 7 | wdd = wm.add_watch(path, IN_OPEN) |
|---|
| 8 | wm.update_watch(wdd[path], ALL_EVENTS) |
|---|
| 9 | |
|---|
| 10 | notifier.loop() |
|---|