pub fn is_path_suitable<P: AsRef<Path>>(path: P, max_size: usize) -> bool
Expand description

return true 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