scan_unit_stats
scan_unit_stats(
path ,
)-> ‘tuple[int | None, int | None]’
Return the (mtime_ns, size_bytes) used to detect source changes.
Index writers and readers share this check. Files return their stat values; directory formats return a manifest fingerprint because directory stats miss member content and size changes. Return (None, None) when filesystem access fails.