MCPcopy
hub / github.com/cloudflare/cloudflared / fileExists

Function fileExists

credentials/origin_cert.go:153–159  ·  view source on GitHub ↗

FileExists checks to see if a file exist at the provided path.

(path string)

Source from the content-addressed store, hash-verified

151
152// FileExists checks to see if a file exist at the provided path.
153func fileExists(path string) bool {
154 fileStat, err := os.Stat(path)
155 if err != nil {
156 return false
157 }
158 return !fileStat.IsDir()
159}

Callers 2

FindOriginCertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected