file:write
Writes or appends content to a file, optionally deleting it first
Writes or appends content to a file, optionally deleting it first
Options
| Name | Type | Description |
|---|---|---|
path | string | Destination file path |
append | bool | When true, content is appended to the existing file instead of overwriting |
content | any | The content to write; must be a string or []byte |
delete | bool | When true, deletes the file before writing (ignored when Append is true) |
Outputs
| Name | Type | Description |
|---|---|---|
path | string | The path of the written file |
How is this guide?