Create config file when it's missing
This commit is contained in:
parent
a6b95f50c9
commit
78cf8d6ca2
3 changed files with 35 additions and 16 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue