Skip to main content

is_binary_file

Function is_binary_file 

Source
pub fn is_binary_file(path: &Path) -> Result<bool, TldrError>
Expand description

Check if a file appears to be binary.

Reads the first 8KB of the file and checks for null bytes.