Actions36
- List Files
- Search Files
- Download File
- Upload File
- Create Folder
- Rename
- Delete
- Copy / Move
- List Starred Files
- List Recent Files
- List Shared with Me
- List Shared with Others
- Get File Ancestors
- Create Share Link
- List Share Links
- Update Share Permissions
- List Labels
- Create Label
- Update Label
- Delete Label
- Add Label to File
- List Files by Label
- Star File
- Convert Office File
- List Team Folders
- Get Team Folder Members
- Create Webhook
- List Webhooks
- Get Webhook
- Update Webhook
- Delete Webhook
- Get File Thumbnail
- Upload from DSM
- Request Access
- Custom Drive Call
- List Drive APIs
Copy / Move
AI-generatedSummary
Copy or move files and folders within Synology Drive by specifying source paths and a destination folder, optionally removing the source to perform a move.
Inputs
- Paths (JSON Array) (required) — A JSON array of paths to the source files or folders to be copied or moved.
- Destination Folder (required) — The target folder path where the files or folders will be copied or moved.
- Remove Source (Move) — Boolean flag indicating whether to remove the source files or folders after operation (true for move, false for copy). Defaults to false.
- Extra Params (JSON) — Additional API parameters as a JSON object to customize the call.
Output shape
a JSON object representing the operation result from Synology DSM API
The output contains a success flag and may include error details on failure. The operation returns immediately without waiting for the copy/move process to complete, as it starts the process asynchronously.
Examples
Example 1: Copy multiple files or folders to a destination folder without deleting the source
Set Paths to a JSON array of source paths, Destination Folder to target path, Remove Source to false or leave unset.
Example 2: Move files by copying then removing the source
Set Paths to source paths, Destination Folder to target, and Remove Source to true.
