]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Split scanning into a separate method so that we can call it periodically.
authorDaira Hopwood <daira@jacaranda.org>
Mon, 14 Dec 2015 15:17:39 +0000 (15:17 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 29 Dec 2015 15:17:07 +0000 (15:17 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/frontends/magic_folder.py

index 353b8facc8d2e2ad14d7448667dd20e8bd180353..2b10d3163a173cab0544e5d49935d54cf21d2b6d 100644 (file)
@@ -234,6 +234,9 @@ class Uploader(QueueMixin):
     def start_scanning(self):
         self._log("start_scanning")
         self.is_ready = True
+        return self._full_scan()
+
+    def _full_scan(self):
         self._pending = self._db.get_all_relpaths()
         self._log("all_files %r" % (self._pending))
         d = self._scan(u"")