projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5137a9
)
Split scanning into a separate method so that we can call it periodically.
2635.periodic-uploader-scan.0
author
Daira Hopwood
<daira@jacaranda.org>
Mon, 14 Dec 2015 15:17:39 +0000
(15:17 +0000)
committer
Daira 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
patch
|
blob
|
history
diff --git
a/src/allmydata/frontends/magic_folder.py
b/src/allmydata/frontends/magic_folder.py
index 62e6988d1ef96aab8e4390750a80a8b6a2f8fa83..bbad8097dccb12c71a7e328d439b250d4f7e93c3 100644
(file)
--- 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"")