Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add feature to query mimeType for it's top level type #23

Open
d-silveira opened this issue Jul 23, 2018 · 0 comments
Open

add feature to query mimeType for it's top level type #23

d-silveira opened this issue Jul 23, 2018 · 0 comments
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

Comments

@d-silveira
Copy link

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')

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug contributions-welcome Contributions welcome to help resolve this (the resolution is expected to be clear from the issue) labels May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants