MCPcopy
hub / github.com/opencloud-eu/opencloud / configExists

Function configExists

opencloud/pkg/init/functions.go:21–27  ·  view source on GitHub ↗
(configPath string)

Source from the content-addressed store, hash-verified

19}
20
21func 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
29func backupOpenCloudConfigFile(configPath string) (string, error) {
30 sourceConfig := path.Join(configPath, configFilename)

Callers 1

CreateConfigFunction · 0.85

Calls 1

StatMethod · 0.65

Tested by

no test coverage detected