MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / actionSiteReload

Method actionSiteReload

src/Ui/UiWebsocket.py:546–550  ·  view source on GitHub ↗
(self, to, inner_path)

Source from the content-addressed store, hash-verified

544 self.response(to, {"error": "Content publish failed."})
545
546 def actionSiteReload(self, to, inner_path):
547 self.site.content_manager.loadContent(inner_path, add_bad_files=False)
548 self.site.storage.verifyFiles(quick_check=True)
549 self.site.updateWebsocket()
550 return "ok"
551
552 # Write a file to disk
553 def actionFileWrite(self, to, inner_path, content_base64, ignore_bad_files=False):

Callers

nothing calls this directly

Calls 3

loadContentMethod · 0.80
verifyFilesMethod · 0.80
updateWebsocketMethod · 0.45

Tested by

no test coverage detected