[−][src]Macro filemagic::magic
Returns the Mime type of a file
Usage Example
ⓘ
use filemagic::magic; let magic = magic!(); println!("{}", magic.file("path/to/file"));
Returns the Mime type of a file
use filemagic::magic; let magic = magic!(); println!("{}", magic.file("path/to/file"));