From e845f7ff65a8aca55430bc9b989fe8847b77c67f Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 11 Apr 2016 19:23:34 +0100 Subject: [PATCH] Filter out FILE_ACTION_MODIFIED for directories. Signed-off-by: Daira Hopwood --- src/allmydata/windows/inotify.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/allmydata/windows/inotify.py b/src/allmydata/windows/inotify.py index f3da543b8..dc08e0b49 100644 --- a/src/allmydata/windows/inotify.py +++ b/src/allmydata/windows/inotify.py @@ -269,6 +269,8 @@ class INotify(PollMixin): if self._check_stop(): return for info in fni: path = self._path.preauthChild(info.filename) # FilePath with Unicode path + if info.action == FILE_ACTION_MODIFIED and path.isdir(): + continue #mask = _action_to_inotify_mask.get(info.action, IN_CHANGED) def _maybe_notify(path):