MCPcopy
hub / github.com/github/gh-ost / FileExists

Function FileExists

go/base/utils.go:31–36  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

29}
30
31func FileExists(fileName string) bool {
32 if _, err := os.Stat(fileName); err == nil {
33 return true
34 }
35 return false
36}
37
38func TouchFile(fileName string) error {
39 f, err := os.OpenFile(fileName, os.O_APPEND|os.O_CREATE, 0755)

Callers 6

BindSocketFileMethod · 0.92
createFlagFilesMethod · 0.92
cutOverMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…