(self)
| 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: |