MCPcopy
hub / github.com/cloudfoundry/cli / DefaultFilePath

Function DefaultFilePath

cf/configuration/confighelpers/config_helpers.go:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func DefaultFilePath() (string, error) {
27 homeDir, err := homeDir()
28
29 if err != nil {
30 return "", err
31 }
32
33 return filepath.Join(homeDir, ".cf", "config.json"), nil
34}
35
36// See: http://stackoverflow.com/questions/7922270/obtain-users-home-directory
37// we can't cross compile using cgo and use user.Current()

Callers 2

MainFunction · 0.92
NewDependencyFunction · 0.92

Calls 1

homeDirFunction · 0.85

Tested by

no test coverage detected