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

Method SdkHasFile

sdk/python/runtime/discovery.go:130–133  ·  view source on GitHub ↗

SdkHasFile returns true if the file exists in the SDK's source directory.

(name string)

Source from the content-addressed store, hash-verified

128
129// SdkHasFile returns true if the file exists in the SDK's source directory.
130func (d *Discovery) SdkHasFile(name string) bool {
131 _, ok := d.SdkFileSet[name]
132 return ok
133}
134
135// AddNewFile adds a new file, with contents, to the module's source.
136func (m *PythonSdk) AddNewFile(name, contents string) {

Callers 3

loadFilesMethod · 0.95
uvMethod · 0.80
WithSDKMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected