tempfile
Type: Function · Category: popular
Create a temporary file and write some data into it.
The file will be automatically removed when the query completes.
| Argument | Type | Description |
|---|---|---|
data |
list of string | Data to write in the tempfile. |
extension |
string | An extension to place in the tempfile. |
permissions |
string | Required permissions (e.g. ‘x’). |
remove_last |
bool | If set we delay removal as much as possible. |
Required permissions: FILESYSTEM_WRITE
Platforms: macOS, Linux, Windows
Source: vql/filesystem/tempfile.go