MCPcopy Index your code
hub / github.com/pex-tool/pex / write_entry

Method write_entry

pex/common.py:879–889  ·  view source on GitHub ↗
(
                filename,  # type: str
                arcname,  # type: str
            )

Source from the content-addressed store, hash-verified

877 ) as zf:
878
879 def write_entry(
880 filename, # type: str
881 arcname, # type: str
882 ):
883 # type: (...) -> None
884 zf.write_deterministic(
885 filename=filename,
886 arcname=os.path.relpath(arcname, strip_prefix) if strip_prefix else arcname,
887 deterministic=deterministic,
888 compress=compress and self._compress_by_file.get(arcname, True),
889 )
890
891 def get_parent_dir(path):
892 # type: (str) -> Optional[str]

Callers

nothing calls this directly

Calls 2

write_deterministicMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected