Title: mimetypes libmagic compatibility
Type: enhancement Stage:
Components: Extension Modules Versions:
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: bpypy
Priority: normal Keywords:

Created on 2018-08-05 16:48 by bpypy, last changed 2018-08-05 16:48 by bpypy.

Messages (1)
msg323160 - (view) Author: bpypy (bpypy) Date: 2018-08-05 16:48
An obvious use case for mimetypes would be to check if file has correct mimetype, by getting the type with some of libmagic wrappers, and then comparing to guess_type result.

But it seems that they don't always match. One example:
applicattion/rar vs application/x-rar

Kills half the usefullness of the module.
Date User Action Args
2018-08-05 16:48:48bpypycreate