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

index 62e6988d1ef96aab8e4390750a80a8b6a2f8fa83..bbad8097dccb12c71a7e328d439b250d4f7e93c3 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"")