Copy

Copy files/folders.

Fields

from

Source path, supports relative and absolute paths, supports the use of wildcards.

  • Type: String
  • Example:
    # Relative Path Syntax from = "./examples/config.toml" # Absolute Path Wildcard Syntax from = "${SystemDrive}/Windows/system32/*.dll"
  • Validation rules:
    • Is a valid path
    • Complies with wildcard usage

to

Destination path, supports relative and absolute paths.

  • Type: String
  • Example: to = "./config"
  • Validation rules:
    • Is a valid path
    • Does not contain wildcards

overwrite

Optional Whether to overwrite, defaults to false.

  • Type: bool
  • Example: overwrite = true

Permissions

  • Type: fs_read
  • Level: Determined by the destination path
  • Target: Take the value of field from

  • Type: fs_write
  • Level: Determined by the destination path
  • Target: Take the value of field to