Text appender
Last updated
Last updated
[io/file/Text appender]
Appends the input text to a file specified on path
.
Example (success):
"/home/user1/dir1/foo.txt"@0 received on path
"Hello World"@0 received on text
{
path: "/home/user1/dir1/foo.txt",
text: "Hello World"
}@0 sent on written
Example (failure):
"/home/user1/dir1/foo.txt"@0 received on path
"Hello World"@0 received on text
3.
{
path: "/home/user1/dir1/foo.txt",
text: "Hello World"
}@0 sent on bounced
{
"error": "Error: ENOENT: no such file or directory, open '/home/user1/dir1/foo.txt'"
}@0 sent on error
path: string
Receives the path of the file to append text to. Example: "/home/user1/dir1/foo.txt" (To keep the application portable use "/" as path separator.)
text: string
Receives the text to append to the specified file. Example: "Hello World"
bounced: any
Sends synced parameters if operation has failed. Example: { path: "/home/user1/dir1/foo.txt", text: "Hello World" }
written: any
Sends synced parameters if operation has succeeded.. Example: { path: "/home/user1/dir1/foo.txt", text: "Hello World" }
error: {"error": string}
Sends error information if the operation has failed. Example: { "error": "Error: ENOENT: no such file or directory, open '/home/user1/dir1/foo.txt'" }