Skip to main content

writeZip

@webda/core


Function: writeZip()

writeZip(zipPath, entries): number

Defined in: packages/core/src/deployers/zip.ts:77

Write a zip archive

The archive is deterministic: entries are written in the given order with a fixed date, so the same files give the same archive (and the same S3 ETag). Zip64 is not supported: at most 65535 entries and 4GB.

Parameters​

zipPath​

string

the archive to write

entries​

ZipEntry[]

the files

Returns​

number

the size of the archive