Skip to content

Conversation

@kissgyorgy
Copy link
Contributor

unblob creates metadata about files, which includes magic and mime type
using libmagic. When using unlob as a library, the user might want to
control which exact magic file to use for fixed results for these 2 fields.

python-magic supports this with the magic_file init argument.

unblob creates metadata about files, which includes magic and mime type
using libmagic. When using unlob as a library, the user might want to
control which exact magic file to use for fixed results for these 2 fields.

python-magic supports this with the magic_file init argument.
@kissgyorgy kissgyorgy requested a review from e3krisztian June 22, 2022 20:40
@kissgyorgy kissgyorgy marked this pull request as draft June 22, 2022 20:48
@kissgyorgy kissgyorgy marked this pull request as ready for review June 23, 2022 10:29
@kissgyorgy kissgyorgy marked this pull request as draft June 24, 2022 10:03
@kissgyorgy
Copy link
Contributor Author

I have a better solution

@kissgyorgy kissgyorgy marked this pull request as ready for review June 24, 2022 12:37
@kissgyorgy
Copy link
Contributor Author

Never mind, this is the simplest solution I can come up with and will work for us. We generate the compiled magic file during build.

@e3krisztian e3krisztian merged commit e26dc7c into main Jun 25, 2022
@e3krisztian e3krisztian deleted the custom-magic-file branch June 25, 2022 08:56
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

Successfully merging this pull request may close these issues.

3 participants