pub fn is_binary_file(path: &Path) -> boolExpand description
Check if a file is binary using multiple heuristics
This function uses several techniques to detect binary files:
- File extension (known binary extensions)
- Null byte detection (most reliable for true binary files)
- Non-printable character ratio (for text files with some binary data)
- UTF-8 validity (text files should be valid UTF-8)