Filter out FILE_ACTION_MODIFIED for directories.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2016-04-11 19:23:34 +01:00 committed by Brian Warner
parent 23f4b9dbfd
commit e845f7ff65

View File

@ -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):