Skip to main content

Zip

Compress files or a folder into a .zip archive, or add them to an existing one, optionally protected with a password (AES-256, opened by 7-Zip, WinZip and most tools).

Command in the File toolkit · id ooa.file/zip · 9 inputs (2 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SourceFileYesFile or folder to compress, or name rules choosing the files.
TargetFileYesArchive path, e.g. out/report.zip.
PatternStringNoOnly add files whose names match this glob pattern; all files when empty.
CompressionStringNonormalnormal: default size and speed; fast and fastest trade size for speed; store adds files uncompressed.
OverwriteBooleanNotrueReplace an existing archive; when false an existing archive stops the step.
Delete originalsBooleanNofalseDelete the files that were added once the archive is complete.
PasswordCredentialNoEncrypt every file with this password (AES-256). Windows Explorer cannot open such archives; 7-Zip, WinZip and most tools can.
Add to existingBooleanNofalseWhen the archive already exists, keep what is in it and add the files (overwrite is then ignored); a file whose name is already in it replaces that entry. Not with a password.
Only newerBooleanNofalseWhen adding to an existing archive, replace an entry only when the file is newer than it (by more than 2 seconds, the precision of zip dates); new names are always added.

Outputs​

OutputTypeWhat it is
pathFileCreated archive.
addedNumberNumber of files written into the archive (new or replaced).