chasinglogic/dfm

Error on `dfm init [profile]`

Closed this issue · 2 comments

Version:

Output of dfm -v.

dfm version 1.0-dev

Command:

dfm init [profile]

Error:

mkdir /Users/[user]/.config/dfm/profiles/[profile]: no such file or directory

Steps to Reproduce:

Make sure your /Users/[user]/.config/dfm directory doesn't exist yet, and then try to dfm init a new profile.

Suggested Fix:

Option 1:

Use os.MkdirAll instead of os.Mkdir in init.go on line 20.

Option 2:

Add check to make sure dfm directory exists in getProfileDir() or LoadConfig().

Thanks for the amazing bug report! I added the fix and pushed to master so you can pull it down.

Thanks for the quick response. I'll check it out as soon as I get a chance and get back with you.