Atom

archive.zip()

Builds a ZIP archive.

Signature

archive.zip(entries)

Parameters

Dictionary of relative entry-name strings and text/packed entry data.

Returns

Packed u8 ZIP bytes.

Behavior

Creates entries in dictionary iteration order.

Errors

Invalid name, entry data type or ZIP backend error.

Example

Atom
use archive
z = archive.zip({['note.txt'] = 'Atom'})
assert(count(z) > 0)