I need to get a file by URL and store it on the local disk.
I see that Mix.Utils has:
copy_path!(source, target, opts \\ [])
Which seems to do exactly what I want, but is Mix.Utils only something you'd use for writing mix tasks and not for general problem solving?
Which seems to do exactly what I want, but is Mix.Utils only something you'd use for writing mix tasks and not for general problem solving?
Typically yes. If you want to use it though, you need to depend on the :mix
application in your mix.exs
file inside the def application
function.