1. mimetypes is not a reliable way to know the mime type of a file. 2. python-magic uses libmagic which identifies file types by checking their headers according to a predefined list of file types. https://github.com/ahupp/python-magic |
||
|---|---|---|
| .. | ||
| helper | ||
| modules | ||
| __init__.py | ||
| __main__.py | ||