Skip to main content

Move File

Category: Files Move File block screenshot

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

InputRequiredValue KindTypesEnum Values
fromyesexpressionstring
toyesexpressionstring
overwritenoexpression

Notes

  • Filesystem read/write statement that moves one file to another path.
  • If to points to an existing folder, the source file is moved into that folder and keeps its original file name.
  • If to does 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 createFolder when needed.