Quick Pro Tip:
Apparently on Windows, the “~” to refer to the home directory doesn’t work correctly. And it doesn’t throw any sort of error to let you know that it doesn’t work correctly so it will simply silently fail. Here’s a bit of code I just hacked together to work around this issue (FWIW):
home_dir =
case (:os.type()) do
{:win32,_} -> System.get_env("UserProfile")
{:unix,_} -> "~"
end
Hope this may help someone else avoid wasting time.