(subpath string)
| 549 | } |
| 550 | |
| 551 | func (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 | |
| 561 | func (h *shellCallHandler) contextAbsPath(path string) (string, error) { |
| 562 | if !filepath.IsAbs(path) { |
nothing calls this directly
no test coverage detected