upload_directory
Type: Function · Category: server
Upload a file to an upload directory. The final filename will be the output directory path followed by the filename path.
| Argument | Type | Description |
|---|---|---|
file |
accessors.OSPath (required) | The file to upload |
name |
accessors.OSPath | Filename to be stored within the output directory |
accessor |
string | The accessor to use |
output |
string (required) | An output directory to store files in. |
mtime |
Any | Modified time to set the output file. |
atime |
Any | Access time to set the output file. |
ctime |
Any | Change time to set the output file. |
btime |
Any | Birth time to set the output file. |
Required permissions: FILESYSTEM_WRITE
Platforms: macOS, Linux, Windows
Source: vql/networking/upload.go