MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / write_entry

Function write_entry

data/scripts/opencc_resources_zip.py:166–171  ·  view source on GitHub ↗
(archive, name, content, date_time)

Source from the content-addressed store, hash-verified

164
165
166def write_entry(archive, name, content, date_time):
167 info = zipfile.ZipInfo(name)
168 info.date_time = date_time
169 info.compress_type = zipfile.ZIP_STORED
170 info.external_attr = 0o644 << 16
171 archive.writestr(info, content.encode("utf-8"))
172
173
174def add_entry(archive, entries, name, content, date_time):

Callers 3

dumpMethod · 0.85
add_entryFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected