discovery is extension-grepping, not DCF: parse the CP-3461 structure #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GetDCFStoreswalks 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 rootDCIM/; inside are directoriesNNNABCDE(100–999 + 5 free chars); objects areABCD+ 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 underDCIM/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.