Skip to content

Latest commit

 

History

History

gzip

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

GNU Zip

Read and write gzip format compressed files

Installation

flogo install github.com/retgits/flogo-components/activity/gzip

Link for flogo web:

https://github.com/retgits/flogo-components/activity/gzip

Schema

Inputs and Outputs:

{
    "inputs": [
        {
            "name": "action",
            "type": "string",
            "allowed": [
                "gzip",
                "gunzip"
            ]
        },
        {
            "name": "removeFile",
            "type": "boolean"
        },
        {
            "name": "sourceFile",
            "type": "string"
        },
        {
            "name": "targetDirectory",
            "type": "string"
        }
    ],
    "outputs": [
        {
            "name": "result",
            "type": "string"
        }
    ]
}

Inputs

Input Description
action The action you want to take, either gzip or gunzip
removeFile Remove the sourceFile after the action is completed
sourceFile For gzip the sourceFile is the full path of the file you want to compress (like /tmp/document.txt) and for gunzip it is the full path of the file you want to decompress (like /tmp/document.txt.gz)
targetDirectory The directory where you want to store compressed or decompressed file (like /tmp). This directory must exist!

Ouputs

Output Description
result The result will contain OK if the action was carried out successfully or will contain an error message