tr:unzip

calabash/extensions/transpect/unzip-extension/unzip-declaration.xpl

Import URI: http://transpect.io/calabash-extensions/unzip-extension/unzip-declaration.xpl

Will extract a complete zip file or a single contained file to a specified destination folder.

Output Ports

NameDocumentationConnections

result

A c:files document with the extracted files, as c:file elements (no hierarchy). There is an @xml:base attribute on /c:files that contains the $dest-dir location URL. A c:file element will contain a @name attribute with the corresponding file’s relative location.

Options

NameDocumentationDefault

zip

The operating system’s file path (not a URL) to the zip file. On Windows, backward slashes should work, but it’s safer to use forward slashes for path separators. Not sure whether spaces are ok though. There also may be encoding issues related to OS specific encodings of file names that are not UTF-8 compliant.

dest-dir

An OS file system path, not a URL. Will be created if it does not exist (subject to the $overwrite option).

overwrite

Whether existing directories and files will be overwritten. The step will fail if set to 'no' and there is an existing file/dir with the target name.

'no'

file

Optionally, a specific relative path to a file within the zip file. Will be restored to its relative path below $dest-dir.