Mix.Generator.copy_file

You're seeing just the function copy_file, go back to Mix.Generator module for more information.
Link to this function

copy_file(source, target, options \\ [])

View Source (since 1.9.0)

Specs

copy_file(Path.t(), Path.t(), keyword()) :: boolean()

Copies source to target.

If target already exists and the contents are not the same, it asks for user confirmation.

Options

  • :force - forces copying without a shell prompt
  • :quiet - does not log command output

Examples

iex> Mix.Generator.copy_file("source/gitignore", ".gitignore")
* creating .gitignore
true