get cards with GetStores and GetStore, read them through fs.FS (closes #4) #13

Merged
clawbot merged 1 commits from issue-4-api-cleanup into next 2026-11-03 20:54:20 +01:00
1 Commits
Author SHA1 Message Date
clawbot d991df0b24 get cards with GetStores and GetStore, read them through fs.FS (closes #4)
GetStores replaces GetDCFStores: it takes a context, has no count
argument and returns a plain slice. GetStore returns the one mounted
card, or ErrNoStore or ErrMultipleStores.

Each Object keeps the fs.FS its card was read through, and Hash reads
through it, so tests can use fstest.MapFS. A cancelled context stops
the read before the next directory. Library errors wrap with %w.

Model: opus-5-5
2026-11-03 19:34:36 +00:00