(location: ScanLocation, destination)
| 166 | |
| 167 | |
| 168 | def extract(location: ScanLocation, destination) -> AnalyzerReturnType: |
| 169 | if location.metadata["mime"] == "application/zip": |
| 170 | yield from process_zipfile(path=location.location, tmp_dir=destination) |
| 171 | else: |
| 172 | yield from process_tarfile(path=location.location, tmp_dir=destination) |
| 173 | |
| 174 | |
| 175 | def archive_analyzer(*, location: ScanLocation) -> AnalyzerReturnType: |