MCPcopy Create free account
hub / github.com/coder/envbuilder / fileExists

Function fileExists

envbuilder.go:1598–1601  ·  view source on GitHub ↗
(fs billy.Filesystem, path string)

Source from the content-addressed store, hash-verified

1596}
1597
1598func fileExists(fs billy.Filesystem, path string) bool {
1599 fi, err := fs.Stat(path)
1600 return err == nil && !fi.IsDir()
1601}
1602
1603func readFile(fs billy.Filesystem, name string) ([]byte, error) {
1604 f, err := fs.Open(name)

Callers 2

runFunction · 0.85
initDockerConfigOverrideFunction · 0.85

Calls 2

StatMethod · 0.65
IsDirMethod · 0.45

Tested by

no test coverage detected