From 230faf58a8da5f56acbde7ab46d2c4a467054dd5 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 11 Oct 2026 15:10:23 +0200 Subject: [PATCH] Answer stability round 8: a mounted data path names a file where it is on disk --- internal/datafiles/datafiles.go | 5 +++++ 1 file changed, 5 insertions(+) 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) }