Skip to main content

is_binary_file

Function is_binary_file 

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

Check if a file appears to be binary by reading first 8KB and looking for null bytes.