MCPcopy
hub / github.com/hashicorp/packer / fileExists

Function fileExists

command/utils_test.go:46–51  ·  view source on GitHub ↗

fileExists returns true if the filename is found

(filename string)

Source from the content-addressed store, hash-verified

44
45// fileExists returns true if the filename is found
46func fileExists(filename string) bool {
47 if _, err := os.Stat(filename); err == nil {
48 return true
49 }
50 return false
51}

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…