copy_file
Copy a file or directory in Nextcloud to a new destination path. Leaves the source unchanged; fails if the destination already exists.
Instructions
Copy a file or directory in Nextcloud.
Creates a copy at the destination path. The source remains unchanged. Fails if the destination already exists.
Args: source: Source path. Example: "Documents/report.md" destination: Destination path. Example: "Documents/report-backup.md"
Returns: Confirmation message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| destination | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |