Skip to main content

Module zip_pack

Module zip_pack 

Source
Expand description

zip: on a destination entry: the output’s files, plus every attach:ed output’s, packed flat into one zip during the run, optionally with a password (AES-256 by default, ZipCrypto on request). The zip is built in the run folder, so a held entry records it and its SHA-256, and dre release sends exactly those bytes.

Structs§

ZipSpec
A destination entry’s zip:, as written: the password may hold Jinja.

Enums§

Encryption
How a zip’s files are encrypted.

Functions§

build
Pack files flat into the zip to. Entries carry a fixed date, so the same files make the same zip (without a password; encryption salts are random).
entry_names
The flat names the files take in the zip; two files with one name are an error.
zip_name
The zip’s file name: the last part of the destination’s path, else <output>.zip. An error when the path ends in another extension.