MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / fileExists

Function fileExists

cmd/pulumi.go:1191–1194  ·  view source on GitHub ↗

fileExists reports whether the named file exists and is not a directory.

(path string)

Source from the content-addressed store, hash-verified

1189
1190// fileExists reports whether the named file exists and is not a directory.
1191func fileExists(path string) bool {
1192 info, err := os.Stat(path)
1193 return err == nil && !info.IsDir()
1194}
1195
1196// resolveNodeEntry finds the TypeScript/JavaScript entry point for a Node.js Pulumi project.
1197// It checks package.json "main" first, then falls back to index.ts / index.js.

Callers 5

runUserProgramToFunction · 0.85
checkDependenciesFunction · 0.85
ensureDependenciesToFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected