Delete / rename / copy files
myio_file_opDelete, create, rename, or copy files and folders on myIO controller volumes, including cross-volume copies, with safety checks that block removing boot or referenced slots.
Instructions
File operations: delete (a file or an EMPTY folder), mkdir, rename (move within the volume: path -> to), copy (path -> to, folders recursively; on GIGA/Opta also between volumes with to_vol). The controller refuses to delete slot_0, the boot scene slot or a slot a button/timer refers to. System files need MYIO_WRITE=admin. Editor/admin level.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"op": "<op>",
"path": "<path>"
},
"name": "myio_file_op"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| to | No | ||
| vol | No | q = internal flash (GIGA/Opta default), s = SD card (the only volume on a Due) | |
| path | Yes | ||
| server | No | controller name (default Ground floor) | |
| to_vol | No |