fn main() { for p in std::env::args().skip(1) { let Ok(d) = std::fs::read(&p) else { continue }; let n = p.rsplit('/').next().unwrap(); // Exactly what the sweep sees: the first HEADER_BYTES only. let head = &d[..d.len().min(dr_decode::HEADER_BYTES as usize)]; match dr_decode::metadata(head) { Ok(m) => println!( "{n}: header-only at={:?} model={:?}", m.captured_at, m.model ), Err(e) => println!("{n}: header-only ERROR {e}"), } match dr_decode::metadata(&d) { Ok(m) => println!("{n}: whole-file at={:?}", m.captured_at), Err(e) => println!("{n}: whole-file ERROR {e}"), } } }