Skip to content

Commit

Permalink
Not adding IN_IGNORE events to the queue no matter their source path,…
Browse files Browse the repository at this point in the history
… as was done until now
  • Loading branch information
IlayRosenberg committed May 15, 2022
1 parent 137b038 commit 30b6aee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/watchdog/observers/inotify_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ def run(self):
inotify_events = self._inotify.read_events()
grouped_events = self._group_events(inotify_events)
for inotify_event in grouped_events:
if not isinstance(inotify_event, tuple) and inotify_event.is_ignored and \
inotify_event.src_path == self._inotify.path:
# Watch was removed explicitly (inotify_rm_watch(2)) or automatically (file
# was deleted, or filesystem was unmounted), stop watching for events
deleted_self = True
if not isinstance(inotify_event, tuple) and inotify_event.is_ignored:
if inotify_event.src_path == self._inotify.path:
# Watch was removed explicitly (inotify_rm_watch(2)) or automatically (file
# was deleted, or filesystem was unmounted), stop watching for events
deleted_self = True
continue

# Only add delay for unmatched move_from events
Expand Down

0 comments on commit 30b6aee

Please sign in to comment.