MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / redownloadContents

Method redownloadContents

src/Site/Site.py:493–500  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

491
492 # Update site by redownload all content.json
493 def redownloadContents(self):
494 # Download all content.json again
495 content_threads = []
496 for inner_path in list(self.content_manager.contents.keys()):
497 content_threads.append(self.needFile(inner_path, update=True, blocking=False))
498
499 self.log.debug("Waiting %s content.json to finish..." % len(content_threads))
500 gevent.joinall(content_threads)
501
502 # Publish worker
503 def publisher(self, inner_path, peers, published, limit, diffs={}, event_done=None, cb_progress=None):

Callers

nothing calls this directly

Calls 1

needFileMethod · 0.95

Tested by

no test coverage detected