Example #1
0
 def __init__(self, path, recursive=False):
     super().__init__()
     self._queue = DelayedQueue(self.delay)
     self._inotify = Inotify(path, recursive)
     self.start()
Example #2
0
 def __init__(self, path, recursive=False):
     BaseThread.__init__(self)
     self._queue = DelayedQueue(self.delay)
     self._inotify = Inotify(path, recursive)
     self.start()
Example #3
0
 def on_thread_start(self):
     """
     Start reading inotify events.
     """
     self._inotify = Inotify(self._path, self._recursive)