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

Method File

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

Source from the content-addressed store, hash-verified

549}
550
551func (h *shellCallHandler) File(subpath string) (*dagger.File, error) {
552 apath, err := h.contextAbsPath(subpath)
553 if err != nil {
554 return nil, err
555 }
556 h.mu.RLock()
557 defer h.mu.RUnlock()
558 return h.wd.Context.File(h.dag, apath), nil
559}
560
561func (h *shellCallHandler) contextAbsPath(path string) (string, error) {
562 if !filepath.IsAbs(path) {

Callers

nothing calls this directly

Calls 2

contextAbsPathMethod · 0.95
FileMethod · 0.65

Tested by

no test coverage detected