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 File coverage to format listings #11

Open
nkrabben opened this issue Nov 30, 2017 · 2 comments
Open

Add File coverage to format listings #11

nkrabben opened this issue Nov 30, 2017 · 2 comments

Comments

@nkrabben
Copy link
Contributor

The file tool also identifies a number of formats and would be useful to have in this combined registry.

@anjackson
Copy link
Contributor

Yes, very happy to review any pull requests to improve this. You can see the fine free file magic here: https://github.com/file/file/tree/master/magic/Magdir

It doesn't have file extensions, but it does have some MIME types, e.g. https://github.com/file/file/blob/master/magic/Magdir/pdf

@anjackson
Copy link
Contributor

Hmm, does have some extension info, e.g.

https://github.com/file/file/blob/d3516f29966c52ebd0619839110edd6646540e0b/magic/Magdir/jpeg#L17-L21

But it looks a bit gnarly to parse. I guess look for the !:mime and then backtrack to a non-!: line and backtrack via the > to put the name together?

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

No branches or pull requests

2 participants