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

Method actionFileNeed

src/Ui/UiWebsocket.py:700–706  ·  view source on GitHub ↗
(self, to, inner_path, timeout=300)

Source from the content-addressed store, hash-verified

698
699 @flag.async_run
700 def actionFileNeed(self, to, inner_path, timeout=300):
701 try:
702 with gevent.Timeout(timeout):
703 self.site.needFile(inner_path, priority=6)
704 except (Exception, gevent.Timeout) as err:
705 return self.response(to, {"error": Debug.formatExceptionMessage(err)})
706 return self.response(to, "ok")
707
708 def actionFileRules(self, to, inner_path, use_my_cert=False, content=None):
709 if not content: # No content defined by function call

Callers

nothing calls this directly

Calls 2

responseMethod · 0.95
needFileMethod · 0.45

Tested by

no test coverage detected