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

Function process_tarfile

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

Source from the content-addressed store, hash-verified

157
158
159def process_tarfile(path, tmp_dir) -> AnalyzerReturnType:
160 with tarfile.open(name=path, mode="r:*") as fd:
161 for x in filter_tar(arch=fd, path=path):
162 if isinstance(x, tarfile.TarInfo):
163 fd.extract(member=x, path=tmp_dir, set_attrs=False)
164 else:
165 yield x
166
167
168def extract(location: ScanLocation, destination) -> AnalyzerReturnType:

Callers 1

extractFunction · 0.85

Calls 1

filter_tarFunction · 0.85

Tested by

no test coverage detected