MCPcopy Create free account
hub / github.com/dagger/dagger / WithoutDirectory

Method WithoutDirectory

sdk/python/runtime/internal/dagger/dagger.gen.go:3629–3642  ·  view source on GitHub ↗

Return a new container snapshot, with a directory removed from its filesystem

(path string, opts ...ContainerWithoutDirectoryOpts)

Source from the content-addressed store, hash-verified

3627
3628// Return a new container snapshot, with a directory removed from its filesystem
3629func (r *Container) WithoutDirectory(path string, opts ...ContainerWithoutDirectoryOpts) *Container {
3630 q := r.query.Select("withoutDirectory")
3631 for i := len(opts) - 1; i >= 0; i-- {
3632 // `expand` optional argument
3633 if !querybuilder.IsZeroValue(opts[i].Expand) {
3634 q = q.Arg("expand", opts[i].Expand)
3635 }
3636 }
3637 q = q.Arg("path", path)
3638
3639 return &Container{
3640 query: q,
3641 }
3642}
3643
3644// Retrieves this container without a configured docker healtcheck command.
3645func (r *Container) WithoutDockerHealthcheck() *Container {

Callers 3

loadFilesMethod · 0.45
CodegenMethod · 0.45
WithSDKMethod · 0.45

Calls 2

SelectMethod · 0.65
ArgMethod · 0.45

Tested by

no test coverage detected