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

Method actionFileList

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

Source from the content-addressed store, hash-verified

643 # List files in directory
644 @flag.async_run
645 def actionFileList(self, to, inner_path):
646 try:
647 return list(self.site.storage.walk(inner_path))
648 except Exception as err:
649 self.log.error("fileList %s error: %s" % (inner_path, Debug.formatException(err)))
650 return {"error": Debug.formatExceptionMessage(err)}
651
652 # List directories in a directory
653 @flag.async_run

Callers

nothing calls this directly

Calls 2

errorMethod · 0.80
walkMethod · 0.45

Tested by

no test coverage detected