Skip to content

Commit

Permalink
Make the config folder name platform-dependent
Browse files Browse the repository at this point in the history
Rename it into "clc" (without a period) for Windows
  • Loading branch information
ldmberman committed Sep 3, 2015
1 parent 17039a5 commit e816e11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ var GetPath = func() (string, error) {
return "", err
}

return path.Join(u.HomeDir, ".clc"), nil
return path.Join(u.HomeDir, CONFIG_FOLDER_NAME), nil
}

func CreateIfNotExists() error {
Expand Down
5 changes: 5 additions & 0 deletions config/folder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// +build !windows

package config

var CONFIG_FOLDER_NAME = ".clc"
3 changes: 3 additions & 0 deletions config/folder_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package config

var CONFIG_FOLDER_NAME = "clc"

0 comments on commit e816e11

Please sign in to comment.