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

Method Directory

cmd/dagger/shell_fs.go:541–549  ·  view source on GitHub ↗
(subpath string)

Source from the content-addressed store, hash-verified

539}
540
541func (h *shellCallHandler) Directory(subpath string) (*dagger.Directory, error) {
542 apath, err := h.contextAbsPath(subpath)
543 if err != nil {
544 return nil, err
545 }
546 h.mu.RLock()
547 defer h.mu.RUnlock()
548 return h.wd.Context.Directory(h.dag, apath), nil
549}
550
551func (h *shellCallHandler) File(subpath string) (*dagger.File, error) {
552 apath, err := h.contextAbsPath(subpath)

Callers 1

registerCommandsMethod · 0.95

Calls 2

contextAbsPathMethod · 0.95
DirectoryMethod · 0.65

Tested by

no test coverage detected