Skip to content

How to use external magic db? #71

@AcidS76

Description

@AcidS76

Hi,
I'm use this lib since some months and it's very useful but the problem I see it's the update of its magic db. I tried to use the files from https://github.com/file/file/tree/master/magic/Magdir, as reported in a issue from @stokito, concatenating all the files in a big txt file. But for some strange reason, the resulting db seems not letting correctly detect zip format, giving me "(0x%x)" as value when I call the method "getName()", while it's correct "zip" with the buil-in db. Does anyone else have the same problem or does know a way to load an updated version of magic db?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions