@cryptotaxi247 / kubo / commits / c685f571e

go-ipfs-config: config: change default config dir name to .ipfs

This changes .go-ipfs to .ipfs everywhere. And by the way this defines a DefaultPathName const for this name. License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Mar 29, 2015 at 13:25 UTC c685f571eab02b397b76a528b55472fc6a2222b8
1 file changed +3 -1
config/config.go
+3 -1
@@ -29,8 +29,10 @@ type Config struct {
29 }
30
31 const (
32 + // DefaultPathName is the default config dir name
33 + DefaultPathName = ".ipfs"
34 // DefaultPathRoot is the path to the default config dir location.
33 - DefaultPathRoot = "~/.go-ipfs"
35 + DefaultPathRoot = "~/" + DefaultPathName
36 // DefaultConfigFile is the filename of the configuration file
37 DefaultConfigFile = "config"
38 // EnvDir is the environment variable used to change the path root.