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

Why there are no mimetypes in the "MIME" field? #10

Open
takusuman opened this issue Aug 23, 2023 · 0 comments
Open

Why there are no mimetypes in the "MIME" field? #10

takusuman opened this issue Aug 23, 2023 · 0 comments

Comments

@takusuman
Copy link

takusuman commented Aug 23, 2023

G'day, magic contributors!

I'm trying to write a program that converts cbr's to PDF, and I'd like to ask why there are no MIME types and how could I correctly make a function that checks if a file is RAR-compressed, or Zip-compressed, or TAR-archived etc. Currently, I'm making a quick n' dirty switch-case, but I don't think that's the best way of doing it. I'd like to use MIME types in this switch-case because it seems like a more trustful comparison.

Merci in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant