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

Method getFileList

plugins/Sidebar/ZipStream.py:14–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 self.file_list = self.getFileList()
13
14 def getFileList(self):
15 for root, dirs, files in os.walk(self.dir_path):
16 for file in files:
17 file_path = root + "/" + file
18 relative_path = os.path.join(os.path.relpath(root, self.dir_path), file)
19 yield file_path, relative_path
20 self.zf.close()
21
22 def read(self, size=60 * 1024):
23 for file_path, relative_path in self.file_list:

Callers 1

__init__Method · 0.95

Calls 2

walkMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected