Actions12
File → Move
AI-generatedSummary
Move or rename a file on your NextCloud server from a specified source path to a new destination path, optionally overwriting the destination file if it exists.
Inputs
- Source Path (required) — Current path of the file to move, e.g. '/Documents/file.txt'.
- Destination Path (required) — New path and/or name for the file after moving, e.g. '/Archive/file.txt'.
- Overwrite — Boolean flag to specify whether to overwrite the destination file if it already exists (default is false).
Output shape
a list of JSON objects, each indicating the success of the move operation for an input item with keys 'success' (true), 'from' (source path), and 'to' (destination path).
Returns one output array containing one object per input item moved. If the destination exists and overwrite is false, the operation will fail unless continueOnFail is enabled. Errors return as NodeApiErrors.