unzip
This block is part of the zip group and was last modified in core v12.0.7.
unzip v12.0.7 Unzips the given file
- flow
flow - file required
fileThe zip to be unpacked
- flow
flow - success
condition - error
value - file
file
Extracts every .zip archive from the file pin into a fresh temp folder and outputs the extracted entries on file as {filename, path, type} objects; non-zip entries in the pin are skipped. success (the condition pin) is true with an empty file array when the pin is empty : that is not a failure. Extraction aborts with success=false, file=nil and the reason on value when a single file exceeds 1 GiB (UNZIPPED_FILE_TOO_BIG), the total exceeds 4 GiB (UNZIPPED_ARCHIVE_TOO_BIG), more than 50000 files would be written (UNZIPPED_TOO_MANY_FILES), or the archive cannot be read; a failed extraction deletes everything already written.
A typical wiring for unzip: a function trigger starts the flow; get file from assets feeds the file pin; the flow out pin feeds debug.
Version history
Introduced in v12.0.7.
Back to
zip Return to the main group to view all sub-groups Back to zip Return to the group to view all blocks within this group 