IronFlowDocs

copy_file

Copy a file to a new location.

Parameters

sourcestringrequired
Path to the source file. Supports ${ctx.key} interpolation.
destinationstringrequired
Path for the copied file. Supports ${ctx.key} interpolation.

Context Output

  • copy_file_source — The resolved source path (after interpolation).
  • copy_file_destination — The resolved destination path (after interpolation).
  • copy_file_successtrue when the copy completed successfully.

Example

local flow = Flow.new("copy_demo")

flow:step("copy", nodes.copy_file({
    source = "/tmp/original.txt",
    destination = "/tmp/backup.txt"
}))

flow:step("done", nodes.log({
    message = "Copied to ${ctx.copy_file_destination}",
    level = "info"
})):depends_on("copy")

return flow

IronFlow documentation

Find the next step

Type a keyword to search the documentation.

to move · Enter to open · Esc to close