Use mkdirAll for creating config

pull/42/head
Miguel Mota 5 years ago
parent e39aa24601
commit a29e06b9b1
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

@ -99,7 +99,7 @@ func (ct *Cointop) configPath() string {
func (ct *Cointop) makeConfigDir() error {
path := ct.configDirPath()
if _, err := os.Stat(path); os.IsNotExist(err) {
return os.Mkdir(path, os.ModePerm)
return os.MkdirAll(path, os.ModePerm)
}
return nil

Loading…
Cancel
Save