99fdb5f
1
2
3
4
5
6
7
import magic def get_mime_type(filepath: str): mime = magic.Magic(mime=True) return mime.from_file(filepath)