Copy file
copy_fileCopies a file to a new path inside the vault while keeping the original; respects folder write policies and requires a rev to overwrite existing destinations.
Instructions
Copy a file to a new path inside the vault; the source stays. The destination follows the rules of write_file: overwriting an existing file needs its current rev in a zone with overwrite="rev" and is refused with overwrite="never"; read-only zones and the trash are refused. Directories are not copied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | No | Current rev of the destination file, required to overwrite it in a zone with overwrite="rev". | |
| source | Yes | ||
| destination | Yes |