[][src]Function binaryornot::is_binary

pub fn is_binary<P: AsRef<Path>>(path: P) -> Result<bool>

Test whether or not a file at a given path is a binary.

Example:

use binaryornot;

if binaryornot::is_binary("/path/to/some/file").expect("unable to read file") {
   println!("a binary!");
}