MCPcopy
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
56func fileExists(path string) bool {
57 _, err := os.Stat(path)
58 return err == nil
59}
60
61func readJSONFile(path string) ([]byte, error) {
62 file, err := os.Open(path)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected