Fix miscapture bug.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 3 Nov 2015 15:29:24 +0000 (15:29 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 3 Nov 2015 15:29:24 +0000 (15:29 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/windows/inotify.py

index cc7e534d64d0dc93a8bb13ebd280b1fbf4f5ba22..745b55584305f98c21bcf94a0fd1c51d08932bb2 100644 (file)
@@ -262,7 +262,7 @@ class INotify(PollMixin):
                     path = self._path.preauthChild(info.filename)  # FilePath with Unicode path
                     mask = _action_to_inotify_mask.get(info.action, IN_CHANGED)
 
-                    def _notify(path):
+                    def _notify(path, mask=mask):
                         for cb in self._callbacks:
                             try:
                                 cb(None, path, mask)