Ludwig.Zip

This module provides support for creating zip archives within Ludwig.

Table of Contents

Module Members

zip

(Function)

Create zip archive from filepaths. In order to deterministically generate ZIP files, we do not take modification timestamps of files into account.

Example:

bytes: zip{filePaths: ["js/"]} # will add all files in the js/ directory
bytes: zip{filePaths: ["js/slackbot.js", "README.md"], recursive:False}

Type Signature

 fun { filePaths: List<String>,
       recursive: Optional<Bool> } -> Bytes
Argument: filePaths

The paths of the files to put into the archive.

Type: List<String>

Argument: recursive

Recurse into directories and add files. The default is True.

Type: Optional<Bool>

Returns:

The contents of the zip archive file.

Type: Bytes