MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / extract

Function extract

aura/analyzers/archive.py:168–172  ·  view source on GitHub ↗
(location: ScanLocation, destination)

Source from the content-addressed store, hash-verified

166
167
168def 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
175def archive_analyzer(*, location: ScanLocation) -> AnalyzerReturnType:

Callers 2

archive_analyzerFunction · 0.70

Calls 2

process_zipfileFunction · 0.85
process_tarfileFunction · 0.85

Tested by 1