Function broot::content_search::is_path_binary [−][src]
pub fn is_path_binary<P: AsRef<Path>>(path: P) -> bool
return false when the file looks suitable for searching as text.
This function is quite slow as it creates a memmap just to check
a few bytes. If the memmap can be used, prefer get_mmap_if_not_binary