Actions12
File → Copy
AI-generatedSummary
Copy a file from a specified source path to a destination path on the Nextcloud server, optionally overwriting the destination if it exists.
Inputs
- Source Path (required) — Current path of the file to copy, relative to your Nextcloud root (e.g., /Documents/file.txt).
- Destination Path (required) — Target path and filename for the copied file on the Nextcloud server (e.g., /Archive/file.txt).
- Overwrite — Boolean flag indicating whether to overwrite the destination file if it already exists (default is false).
Output shape
a list of JSON objects
Each output item confirms success with a JSON object containing 'success': true, 'from' indicating the source path, and 'to' indicating the destination path. If an error occurs and 'Continue On Fail' is disabled, the node execution will stop with an error; if enabled, error details will appear in the output JSON.
Examples
Example 1: Copy a file located at /Documents/file.txt to /Archive/file.txt without overwriting existing files.
Set 'Source Path' to '/Documents/file.txt', 'Destination Path' to '/Archive/file.txt', and 'Overwrite' to false.
Example 2: Copy and overwrite a file at /Archive/file.txt with /Documents/file.txt.
Set 'Source Path' to '/Documents/file.txt', 'Destination Path' to '/Archive/file.txt', and enable 'Overwrite'.