Decompress an archive file.
Take a zipped file from internal storage or as an input and decompress for use in a flow.
type: "io.kestra.plugin.compress.archivedecompress"Examples
id: archive_decompress
namespace: company.team
inputs:
  - id: file
    description: Compressed file
    type: FILE
tasks:
  - id: archive_decompress
    type: io.kestra.plugin.compress.ArchiveDecompress
    from: "{{ inputs.file }}"
    algorithm: ZIP
    compression: GZIP
Properties
algorithm *Requiredstring
ARARJCPIODUMPJARTARZIPThe algorithm of the archive file
from *Requiredstring
The file's internal storage URI.
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
compression string
BROTLIBZIP2DEFLATEDEFLATE64GZIPLZ4BLOCKLZ4FRAMELZMASNAPPYSNAPPYFRAMEXZZZSTDThe compression used for the archive file. Some algorithms focus on compressing individual files (for example GZIP), while others compress and combine multiple files into a single archive. The single-file compressor is often used alongside a separate tool for archiving multiple files (TAR and GZIP for example)
Outputs
files object
URI of the decompressed archive file on Kestra's internal storage.
Metrics
count counter
Number of files decompressed
size counter
Total size of decompressed files in bytes