You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see that this crate is focused on identifying files/arbitrary data by magic values, but afaict this is the only crate which implements the freedesktop shared mime db spec, so it would be nice if from_filepath also checked for matching extensions since most of the work (parsing the db etc.) is already done here, and would have to be duplicated in another crate.
Alternatively maybe some of that logic could be split out into another crate which then i could use to implement filename checking?
The text was updated successfully, but these errors were encountered:
m00nwtchr
changed the title
Detection of plain-text formats without a magic value
Detection of different plain-text formats
Oct 22, 2022
m00nwtchr
changed the title
Detection of different plain-text formats
Detection of different text/ mime-types
Oct 22, 2022
I can see that this crate is focused on identifying files/arbitrary data by magic values, but afaict this is the only crate which implements the freedesktop shared mime db spec, so it would be nice if
from_filepath
also checked for matching extensions since most of the work (parsing the db etc.) is already done here, and would have to be duplicated in another crate.Alternatively maybe some of that logic could be split out into another crate which then i could use to implement filename checking?
The text was updated successfully, but these errors were encountered: