[][src]Macro filemagic::magic

macro_rules! magic {
    () => { ... };
    ($flags:expr) => { ... };
    (,$magic_databases:expr) => { ... };
    ($flags:expr, $magic_databases:expr) => { ... };
}

Returns the Mime type of a file

Usage Example

use filemagic::magic;

let magic = magic!();
println!("{}", magic.file("path/to/file"));