(path, tmp_dir)
| 148 | |
| 149 | |
| 150 | def process_zipfile(path, tmp_dir) -> AnalyzerReturnType: |
| 151 | with zipfile.ZipFile(file=path, mode="r") as fd: |
| 152 | for x in filter_zip(arch=fd, path=path): |
| 153 | if isinstance(x, zipfile.ZipInfo): |
| 154 | fd.extract(member=x, path=tmp_dir) |
| 155 | else: |
| 156 | yield x |
| 157 | |
| 158 | |
| 159 | def process_tarfile(path, tmp_dir) -> AnalyzerReturnType: |