MCPcopy Index your code
hub / github.com/cloudfoundry/java-buildpack / Exists

Function Exists

src/java/resources/embed.go:78–82  ·  view source on GitHub ↗

Exists checks if a resource file exists in embedded resources

(path string)

Source from the content-addressed store, hash-verified

76
77// Exists checks if a resource file exists in embedded resources
78func Exists(path string) bool {
79 fullPath := filepath.Join("files", path)
80 _, err := fs.Stat(EmbeddedResources, fullPath)
81 return err == nil
82}

Calls

no outgoing calls

Tested by

no test coverage detected