pub fn capture_date(
path: &Path,
data: Option<&[u8]>,
mtime_ns: i64,
) -> (NaiveDate, DateSource)Expand description
path’s capture date. data is the whole file when the caller already
has it in memory (RAW files, which are read whole anyway); otherwise only
the parts holding metadata are read.