Skip to content

Commit e8edbf9

Browse files
committed
fixing for windows
1 parent ea513fe commit e8edbf9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/util/path.go

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ func GetApplicationDir() (string, error) {
2929

3030
if !legacyFolder {
3131
path = filepath.Join(home, ".config", subFolder) // issue #33- putting into a subfolder to avoid clutter
32+
subpath := filepath.Join(home, ".config")
33+
if _, err := os.Stat(subpath); os.IsNotExist(err) {
34+
os.Mkdir(subpath, 0700)
35+
}
3236
}
3337

3438
if _, err := os.Stat(path); os.IsNotExist(err) {

0 commit comments

Comments
 (0)