discovery is extension-grepping, not DCF: parse the CP-3461 structure #2

Open
opened 2026-08-30 13:14:38 +02:00 by clawbot · 0 comments

GetDCFStores walks every mounted filesystem root for known media extensions (pkg/dcf/dcf.go). That finds any media anywhere, not a DCF store. Per CP-3461: a store is a volume with a root DCIM/; inside are directories NNNABCDE (100–999 + 5 free chars); objects are ABCD + 4-digit file number. Parse that structure — directory numbers, basenames, file numbers — and expose it on the types instead of only path/size/extension. Non-conforming files under DCIM/ are surfaced as such, not silently mixed in.

Done: a fixture card tree parses into stores/directories/objects with their DCF numbers; media outside DCIM/ is not part of a store; extension lists remain only for classifying object type.

`GetDCFStores` walks every mounted filesystem root for known media extensions (`pkg/dcf/dcf.go`). That finds any media anywhere, not a DCF store. Per CP-3461: a store is a volume with a root `DCIM/`; inside are directories `NNNABCDE` (100–999 + 5 free chars); objects are `ABCD` + 4-digit file number. Parse that structure — directory numbers, basenames, file numbers — and expose it on the types instead of only path/size/extension. Non-conforming files under `DCIM/` are surfaced as such, not silently mixed in. Done: a fixture card tree parses into stores/directories/objects with their DCF numbers; media outside `DCIM/` is not part of a store; extension lists remain only for classifying object type.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/dcf#2