View Source Reactor.File.Step.Cp (reactor_file v0.9.0)

A step which copies a file.

Arguments

  • :source (String.t/0) - Required. The path to the source file

  • :target (String.t/0) - Required. The path to the target file

Options

  • :overwrite? (boolean/0) - Whether or not to overwrite the target if it already exists The default value is true.

  • :revert_on_undo? (boolean/0) - Revert back to the initial state on undo (either by removing the target or by setting it back to it's original content) The default value is false.

Returns

A Reactor.File.Step.FileCp.Result