copy
Copy files or directories with atomic write and permission preservation. Use dry run to preview, and overwrite to replace locked files on Windows.
Instructions
Copies a file or directory to a new location. File copy uses atomic write (temp file + rename) and preserves permissions. Directory copy recreates the full directory structure recursively. Use dry_run=true to preview what would be copied without doing it. On Windows, handles locked files (running executables, loaded DLLs) by renaming the locked file aside before replacing it. Use overwrite=true when updating a running binary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Absolute path to the source file or directory,required | |
| destination | No | Absolute path to the destination,required | |
| src | No | Alias for source | |
| dst | No | Alias for destination | |
| overwrite | No | Overwrite existing destination: true or false. Default: false | |
| dry_run | No | Preview what would be copied without doing it: true or false. Default: false |