Synology Drive icon

Synology Drive

Synology Drive / FileStation operations

Copy / Move

AI-generated

Summary

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.

Links

Discussion