Skip to main content

is_binary_content

Function is_binary_content 

Source
pub fn is_binary_content(path: &Path) -> bool
Expand description

Check if a file is binary by reading its content Returns true if the file appears to be binary (contains null bytes in first 8KB)