Copy files or directories
zspace_copyCopy files or directories on a NAS to an existing destination folder while preserving the originals. Use for creating backups or duplicating media.
Instructions
Copy one or more files/directories on the NAS into a destination folder.
Use to duplicate media or create backups without removing the originals. Accepts a single path or a list; the destination must already exist (create it with zspace_mkdir). Returns {status: "copied", paths, to}. Mutates NAS state but leaves the sources untouched.
The non-destructive counterpart of zspace_move — pick copy when the original must stay where it is, move when it should not. Copies consume additional capacity; check zspace_pool_info first for large trees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination directory (absolute path) | |
| paths | Yes | One absolute path or a list of absolute paths to copy |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||