Create config file when it's missing

This commit is contained in:
Arturo Filastò
2018-06-25 17:49:17 +02:00
parent a6b95f50c9
commit 78cf8d6ca2
3 changed files with 35 additions and 16 deletions
+5
View File
@@ -20,6 +20,11 @@ func RequiredDirs(home string) []string {
return requiredDirs
}
// ConfigPath returns the default path to the config file
func ConfigPath(home string) string {
return filepath.Join(home, "config.json")
}
// GeoIPDir returns the geoip data dir for the given OONI Home
func GeoIPDir(home string) string {
return filepath.Join(home, "geoip")