Commits

Nikolaj Sjujskij committed 068d4fc

ino_watch: do not filter all the events in search of specific filename

  • Participants
  • Parent commits 08168b6

Comments (0)

Files changed (1)

inotify_watcher.py

     action_lambda()
     events = []
     while True:
-        if list(ev for ev in events if ev.name == basename):
+        if basename in (ev.name for ev in events):
             action_lambda()
         events = inotifyx.get_events(watcher)