MCPcopy Index your code
hub / github.com/dagger/dagger / HasFile

Method HasFile

sdk/python/runtime/discovery.go:124–127  ·  view source on GitHub ↗

HasFile returns true if the file exists in the original module's source directory.

(name string)

Source from the content-addressed store, hash-verified

122
123// HasFile returns true if the file exists in the original module's source directory.
124func (d *Discovery) HasFile(name string) bool {
125 _, ok := d.FileSet[name]
126 return ok
127}
128
129// SdkHasFile returns true if the file exists in the SDK's source directory.
130func (d *Discovery) SdkHasFile(name string) bool {

Callers 5

loadFilesMethod · 0.95
UseUvLockMethod · 0.80
WithTemplateMethod · 0.80
WithUpdatesMethod · 0.80
WithInstallMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected