diff --git a/internal/datafiles/datafiles.go b/internal/datafiles/datafiles.go index 4e5ea4f..be80b32 100644 --- a/internal/datafiles/datafiles.go +++ b/internal/datafiles/datafiles.go @@ -48,10 +48,15 @@ type Category struct { // ReadRows reads a rows file beside the category. func (c Category) ReadRows(name string) (string, error) { return c.rows.read(name) } +// labelled is the file p as errors name it: under the source's label, as the labelled tree +// spells it, below any mount. func (s Source) labelled(p string) string { if s.label == "" { return p } + if m, isMounted := s.fsys.(mounted); isMounted { + p, _ = m.inner(p) + } return path.Join(s.label, p) }