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

Function process_zipfile

aura/analyzers/archive.py:150–156  ·  view source on GitHub ↗
(path, tmp_dir)

Source from the content-addressed store, hash-verified

148
149
150def 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
159def process_tarfile(path, tmp_dir) -> AnalyzerReturnType:

Callers 1

extractFunction · 0.85

Calls 1

filter_zipFunction · 0.85

Tested by

no test coverage detected