aahancoc / tree_magic

Determines the MIME type of a file by traversing a filetype tree.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Option::unwrap()` on a `None` value for non regular files

kamiyaa opened this issue · comments

Happens when tree_magic::from_filepath(path) is called on non regular files such as fifo, character, block files.

Might be out of scope of this project, but I'll submit this anyways.

Fixed via 9bc1f46