Skip to content
Snippets Groups Projects
Commit ee62668d authored by ale's avatar ale
Browse files

use pyinotify.IN_CLOSE_WRITE

parent ecf6fa27
Branches
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ class Watcher(object):
def __init__(self, base, queue):
self.wm = pyinotify.WatchManager()
self.wm.add_watch('/tmp', pyinotify.IN_CLOSE, rec=True)
self.wm.add_watch('/tmp', pyinotify.IN_CLOSE_WRITE, rec=True)
self.notifier = pyinotify.ThreadedNotifier(self.wm, self)
self.notifier.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment