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.

If a memmap will be needed afterwards, prefer to use get_mmap_if_not_binary which optimizes testing and getting the mmap.