Read and write gzip format compressed files
flogo install github.com/retgits/flogo-components/activity/gzip
Link for flogo web:
https://github.com/retgits/flogo-components/activity/gzip
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"
}
]
}
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! |
Output | Description |
---|---|
result | The result will contain OK if the action was carried out successfully or will contain an error message |