Skip to content

Latest commit

 

History

History

writetofile

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Write to File

Write to a file

Installation

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

Link for flogo web:

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

Schema

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"
        }
    ]
}

Inputs

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

Ouputs

Output Description
result The result (either OK or the error that was generated by the OS)