pub fn scan_file(
entry: &DirEntry,
canonical_paths: bool
) -> Result<Findings, ScanError<'_>>
Expand description
Inspects the given entry, returning a Findings
on success and a ScanError
on failure.
In the event of an IO error, the returned ScanError
will be of type ScanError::File
. Otherwise, a
ScanError::Mime
will be returned, meaning that the file was scanned successfully, but a MIME type could not be
determined.