Move File
Moves one file from `from` to `to`. If `to` points to an existing folder, the file is moved into that folder and keeps its current file name. If `to` does not point to an existing folder, it is interpreted as the full target file path. If `overwrite` is false, the block fails when the resulting target file path already exists. Missing parent folders are not created automatically. Use `createFolder` first when the destination folder does not exist. This block both reads and mutates filesystem state, so the source and target paths must satisfy the execution policy.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
from | yes | expression | string | — |
to | yes | expression | string | — |
overwrite | no | expression | — | — |
Notes
- Filesystem read/write statement that moves one file to another path.
- If
topoints to an existing folder, the source file is moved into that folder and keeps its original file name. - If
todoes not point to an existing folder, it is interpreted as the full target file path. - Fails on existing targets unless
overwrite=true. - Missing parent folders are not created automatically. Create them first with
createFolderwhen needed.