]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix references to IN_CHANGED.
authorDaira Hopwood <daira@jacaranda.org>
Tue, 3 Nov 2015 15:27:29 +0000 (15:27 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 3 Nov 2015 15:27:29 +0000 (15:27 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py

index 491df5569ef2e587e790081b5ab4f1bb280b4360..69070c7427ee9f454f65a433c7b56d3388f80eae 100644 (file)
@@ -228,9 +228,10 @@ class Uploader(QueueMixin):
         self._log("all_files %r" % (all_relpaths,))
         for relpath_u in all_relpaths:
             fp = self._get_filepath(relpath_u)
-            self._notify(None, fp, IN_CHANGED)
+            self._notify(None, fp, self._inotify.IN_CHANGED)
 
         self._scan(u"")
+        self._advance_clock()
 
         d = defer.succeed(None)
         d.addCallback(lambda ign: self._turn_deque())
@@ -250,7 +251,7 @@ class Uploader(QueueMixin):
             relpath_u = ("%s/%s" % (reldir_u, child)) if reldir_u else child
             if not magicpath.should_ignore_file(relpath_u):
                 child_fp = self._get_filepath(relpath_u)
-                self._notify(None, child_fp, IN_CHANGED)
+                self._notify(None, child_fp, self._inotify.IN_CHANGED)
 
     def _notify(self, opaque, path, events_mask):
         self._log("inotify event %r, %r, %r\n" % (opaque, path, ', '.join(self._inotify.humanReadableMask(events_mask))))