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

::Mimemagic.by_magic(<FileHandle>) => nil ... always, but by_path returns a result #54

Closed
mistergibson opened this issue Oct 9, 2017 · 2 comments

Comments

@mistergibson
Copy link

It appears by_magic does not work - it ALWAYS returns a nil no matter what the arguments are.

@jonnynux
Copy link

by_path uses the extension

@minad
Copy link
Collaborator

minad commented Jan 30, 2021

Is this still the case? Maybe your file does not match any magic. Did you test some common file types which are detected correctly by file?

@minad minad closed this as completed Jan 30, 2021
@mimemagicrb mimemagicrb locked as resolved and limited conversation to collaborators Mar 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants