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

Method __init__

plugins/Sidebar/ZipStream.py:6–12  ·  view source on GitHub ↗
(self, dir_path)

Source from the content-addressed store, hash-verified

4
5class ZipStream(object):
6 def __init__(self, dir_path):
7 self.dir_path = dir_path
8 self.pos = 0
9 self.buff_pos = 0
10 self.zf = zipfile.ZipFile(self, 'w', zipfile.ZIP_DEFLATED, allowZip64=True)
11 self.buff = io.BytesIO()
12 self.file_list = self.getFileList()
13
14 def getFileList(self):
15 for root, dirs, files in os.walk(self.dir_path):

Callers

nothing calls this directly

Calls 1

getFileListMethod · 0.95

Tested by

no test coverage detected