MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / _write_tar_gz

Function _write_tar_gz

pkg/pypi/tests/test_cli.py:897–902  ·  view source on GitHub ↗
(archive, entries)

Source from the content-addressed store, hash-verified

895
896
897def _write_tar_gz(archive, entries):
898 with tarfile.open(archive, "w:gz") as tf:
899 for name, data in entries:
900 info = tarfile.TarInfo(name)
901 info.size = len(data)
902 tf.addfile(info, io.BytesIO(data))
903
904
905def _write_zip(archive, entries):

Calls 1

openMethod · 0.80

Tested by

no test coverage detected