(configPath string)
| 19 | } |
| 20 | |
| 21 | func configExists(configPath string) bool { |
| 22 | targetPath := path.Join(configPath, configFilename) |
| 23 | if _, err := os.Stat(targetPath); err == nil { |
| 24 | return true |
| 25 | } |
| 26 | return false |
| 27 | } |
| 28 | |
| 29 | func backupOpenCloudConfigFile(configPath string) (string, error) { |
| 30 | sourceConfig := path.Join(configPath, configFilename) |