Skip to main content

verify_file

Function verify_file 

Source
pub fn verify_file(path: &Path, max_file_size: u64) -> FileRecord
Expand description

Verify a file is UTF-8 without BOM. Unreadable / oversized files fail closed (a gate must not wave through what it cannot inspect).