Skip to main content

Module file_finder

Module file_finder 

Source

Structs§

FindOptions
Options for the file finder.
FoundFile
A file discovered by the finder.
ScanProgress
Shared counter for progress reporting during parallel walk.

Enums§

FileCategory
Categories of file types for filtering.

Functions§

check_quarantine
Read the quarantine xattr to detect downloaded files. Returns (is_downloaded, download_source).
detect_by_extension
Detect file category by extension.
find_files
Find files matching the given options using parallel traversal.
validate_by_magic_bytes
Validate file type using magic bytes via the infer crate. If magic bytes disagree with extension-based detection, trust magic bytes. If infer returns None (unknown), keep the extension-based category.