MCPcopy Create free account
hub / github.com/AdRoll/baker / Exists

Function Exists

testutil/dir.go:69–75  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

67}
68
69func Exists(filePath string) bool {
70 if _, err := os.Stat(filePath); os.IsNotExist(err) {
71 return false
72 }
73
74 return true
75}
76
77func CreateIfNotExists(dir string, perm os.FileMode) error {
78 if Exists(dir) {

Callers 1

CreateIfNotExistsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected