Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cloudfoundry/cli
/ fileExists
Function
fileExists
cf/util/json/json_parser.go:56–59 ·
view source on GitHub ↗
(path string)
Source
from the content-addressed store, hash-verified
54
}
55
56
func
fileExists(path string) bool {
57
_, err := os.Stat(path)
58
return
err == nil
59
}
60
61
func
readJSONFile(path string) ([]byte, error) {
62
file, err := os.Open(path)
Callers
1
ParseJSONFromFileOrString
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected