rename
Rename or move files and directories atomically using os.Rename. Preview changes with dry_run=true before execution.
Instructions
Renames or moves a file/directory. Atomic operation via os.Rename. Use dry_run=true to preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| old_path | No | Absolute path to the file or directory to rename | |
| new_path | No | Absolute path for the new name/location | |
| source | No | Alias for old_path | |
| destination | No | Alias for new_path | |
| from | No | Alias for old_path | |
| to | No | Alias for new_path | |
| dry_run | No | Preview rename without actually moving the file: true or false. Default: false |