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

Method actionFileQuery

src/Ui/UiWebsocket.py:636–641  ·  view source on GitHub ↗
(self, to, dir_inner_path, query=None)

Source from the content-addressed store, hash-verified

634
635 # Find data in json files
636 def actionFileQuery(self, to, dir_inner_path, query=None):
637 # s = time.time()
638 dir_path = self.site.storage.getPath(dir_inner_path)
639 rows = list(QueryJson.query(dir_path, query or ""))
640 # self.log.debug("FileQuery %s %s done in %s" % (dir_inner_path, query, time.time()-s))
641 return self.response(to, rows)
642
643 # List files in directory
644 @flag.async_run

Callers

nothing calls this directly

Calls 3

responseMethod · 0.95
getPathMethod · 0.80
queryMethod · 0.80

Tested by

no test coverage detected