Skip to main content

Module archive

Module archive 

Source
Expand description

The archives packages are shipped in: a zip (Windows, the web) and a tar.gz (Linux). Both are written the same for the same files: every entry at one fixed time (1980-01-01), in the order given, so an export made twice gives the same bytes.

Structs§

Entry
A file to put in an archive.

Functions§

entries
Every file under dir, named from prefix ("" for the archive’s root, "game-1.0-linux/" for a folder), sorted by name; executable says which are programs.
read
The files of the archive at path, a zip or a tar.gz as these functions write them: each name and its bytes, in order. An archive that unpacks to more than limit bytes is an error, as is one that doesn’t read.
tar_gz
Writes entries into a gzip-compressed ustar archive at out.
zip
Writes entries into a zip at out, each deflated, with UTF-8 names.
zip_names
The names of the entries of the zip bytes, in order, from its central directory.