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

Method streamZip

plugins/Sidebar/SidebarPlugin.py:78–84  ·  view source on GitHub ↗
(self, dir_path)

Source from the content-addressed store, hash-verified

76 return self.streamZip(site.storage.getPath("."))
77
78 def streamZip(self, dir_path):
79 zs = ZipStream(dir_path)
80 while 1:
81 data = zs.read()
82 if not data:
83 break
84 yield data
85
86
87@PluginManager.registerTo("UiWebsocket")

Callers 1

actionZipMethod · 0.95

Calls 2

readMethod · 0.95
ZipStreamClass · 0.90

Tested by

no test coverage detected