From: Daira Hopwood Date: Mon, 14 Dec 2015 15:17:39 +0000 (+0000) Subject: Split scanning into a separate method so that we can call it periodically. X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/provisioning?a=commitdiff_plain;h=156bada8efd936615be247edf9e5c484d90098c3;p=tahoe-lafs%2Ftahoe-lafs.git Split scanning into a separate method so that we can call it periodically. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/frontends/magic_folder.py b/src/allmydata/frontends/magic_folder.py index 62e6988d..bbad8097 100644 --- a/src/allmydata/frontends/magic_folder.py +++ b/src/allmydata/frontends/magic_folder.py @@ -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"")