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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| bot_utils.py | ||
| exceptions.py | ||
| fs_utils.py | ||