Should I use Mix.Utils in my elixir code?

I need to get the file at the url and save it to a local drive.

I see Mix.Utils has:

copy_path!(source, target, opts \\ [])

It seems that I'm doing exactly what I want, but is Mix.Utils just what you would use to write mixing tasks, and not for general problem solving?

+4
source share
1 answer

It seems that I'm doing exactly what I want, but is Mix.Utils just what you would use to write mixing tasks, and not for general problem solving?

Usually yes. If you want to use it, you need to depend on the application :mixin your mix.exsfile inside the function def application.

+4
source

All Articles