MCPcopy
hub / github.com/dagger/dagger / AddDirectory

Method AddDirectory

sdk/python/runtime/discovery.go:157–159  ·  view source on GitHub ↗

AddDirectory adds a directory to the module's source.

(name string, dir *dagger.Directory)

Source from the content-addressed store, hash-verified

155
156// AddDirectory adds a directory to the module's source.
157func (m *PythonSdk) AddDirectory(name string, dir *dagger.Directory) {
158 m.ContextDir = m.ContextDir.WithDirectory(path.Join(m.SubPath, name), dir)
159}
160
161// We could use modSource.Directory("") but we'll need to use the
162// context directory in GeneratedCode later, so rather than trying

Callers 2

WithSDKMethod · 0.95
invokeFunction · 0.80

Calls 1

WithDirectoryMethod · 0.45

Tested by

no test coverage detected