IronFlowDocs

move_file

Move (rename) a file to a new location.

Parameters

sourcestringrequired
Path to the file to move. Supports ${ctx.key} interpolation.
destinationstringrequired
New path for the file. Supports ${ctx.key} interpolation.

Context Output

  • move_file_source — The resolved source path (after interpolation).
  • move_file_destination — The resolved destination path (after interpolation).
  • move_file_successtrue when the move completed successfully.

Example

local flow = Flow.new("move_demo")

flow:step("move", nodes.move_file({
    source = "/tmp/old_name.txt",
    destination = "/tmp/new_name.txt"
}))

flow:step("done", nodes.log({
    message = "Moved to ${ctx.move_file_destination}",
    level = "info"
})):depends_on("move")

return flow

IronFlow documentation

Find the next step

Type a keyword to search the documentation.

to move · Enter to open · Esc to close