Reactor.File.Step.CpR (reactor_file v0.18.3)

View Source

A step which calls File.cp_r/2

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.

  • :dereference_symlinks? (boolean/0) - By default, this function will copy symlinks by creating symlinks that point to the same location. This option forces symlinks to be dereferenced and have their contents copied instead when set to true. If the dereferenced files do not exist, than the operation fails. The default value is false.