MCPcopy Create free account
hub / github.com/jetify-com/devbox / Exists

Function Exists

internal/fileutil/fileutil.go:49–52  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

47}
48
49func Exists(path string) bool {
50 _, err := os.Stat(path)
51 return err == nil
52}
53
54func IsDirEmpty(path string) (bool, error) {
55 entries, err := os.ReadDir(path)

Callers 7

GenerateDevcontainerMethod · 0.92
GenerateDockerfileMethod · 0.92
GenerateEnvrcFileMethod · 0.92
checkOldEnvrcMethod · 0.92
GenerateReadmeFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected