From 2d5f1757122e20bc9e041f6ccc4133eeb9eed335 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Wed, 27 Feb 2019 15:37:52 -0500 Subject: [PATCH] this is probably more useful and less surprising --- src/allmydata/watchdog/inotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/watchdog/inotify.py b/src/allmydata/watchdog/inotify.py index 75055a678..d65a0014a 100644 --- a/src/allmydata/watchdog/inotify.py +++ b/src/allmydata/watchdog/inotify.py @@ -142,7 +142,7 @@ class INotifyEventHandler(FileSystemEventHandler): ) def on_any_event(self, event): - with ANY_INOTIFY_EVENT(path=self._path, event=event): + with ANY_INOTIFY_EVENT(path=event.src_path, event=event): self.process(event)