h2non / filetype.py

Small, dependency-free, fast Python package to infer binary file types checking the magic numbers signature
https://h2non.github.io/filetype.py
MIT License
650 stars 111 forks source link

MS Word misidentified as MS Excel #161

Closed MioYvo closed 1 year ago

MioYvo commented 1 year ago

version: 1.2.0 example file: s.zip reproduce code:

filetype.guess_mime('s.doc')

current result: application/vnd.ms-excel expect result: application/msword

laolv421 commented 1 year ago

same problem,identify doc as xls.