Write to a file
flogo install github.com/retgits/flogo-components/activity/writetofile
Link for flogo web:
https://github.com/retgits/flogo-components/activity/writetofile
Inputs and Outputs:
{
"inputs": [
{
"name": "filename",
"type": "string",
"required": true
},
{
"name": "content",
"type": "string",
"required": true
},
{
"name": "contentType",
"type": "string",
"required": true,
"allowed": [
"text",
"base64encoded"
],
"value": "text"
},
{
"name": "append",
"type": "bool",
"required": true
},
{
"name": "create",
"type": "bool",
"required": true
}
],
"outputs": [
{
"name": "result",
"type": "string"
}
]
}
Input | Description |
---|---|
filename | The name of the file you want to write to (like data.txt or ./tmp/data.txt ) |
content | The actual content you want to write |
contentType | Specify content type (text |
append | Append to the file or overwrite existing content |
create | Create the file if it doesn't exist |
Output | Description |
---|---|
result | The result (either OK or the error that was generated by the OS) |