copy_file
Copies a file to a specified destination, preserving the filename if the destination is a directory. Optionally overwrites existing files.
Instructions
Copy a file to a new location. If dst is a directory, the file is copied into it preserving its name. Requires allow_file_write in ~/.syscontrol/config.json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dst | Yes | Destination file path or directory. | |
| src | Yes | Source file path. | |
| overwrite | No | Replace destination if it exists (default false). |