add feature to query mimeType for it's top level type #23
Labels
contributions-welcome
Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)
type-enhancement
A request for a change that isn't a bug
It would be useful to have a method to match the top level type, like:
bool isType(MimeTypeResolver.VIDEO, [filepath/file/mimeType])
such that it would return true in this example:isType(MimeTypeResolver.VIDEO, '/example.mp4')
and false for:isType(MimeTypeResolver.AUDIO, '/example.txt')
The text was updated successfully, but these errors were encountered: