write_file
Type: Function
Writes a string onto a file.
This VQL function is a convenience wrapper to the copy() function.
| Argument | Type | Description |
|---|---|---|
data |
string (required) | The data to write |
dest |
string (required) | The destination file to write. |
permissions |
string | Required permissions (e.g. ‘x’). |
append |
bool | If true we append to the target file otherwise truncate it |
create_directories |
bool | If true we ensure the destination directories exist |
Required permissions: FILESYSTEM_WRITE, FILESYSTEM_READ
Platforms: Linux, Windows
Source: vql/filesystem/write_file.go