simplemagic icon indicating copy to clipboard operation
simplemagic copied to clipboard

How to use external magic db?

Open AcidS76 opened this issue 5 years ago • 1 comments

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

AcidS76 avatar Apr 12 '20 22:04 AcidS76

Carlo mentioned the issue #68

stokito avatar Apr 13 '20 09:04 stokito