I'm looking for a python library that provides that returns exactly the same mime type for a given file as the bash command xdg-mime query filetype <filename>
. The goal is to use that function to find all file in a diretory with a certain mime type (application/mbox
)
I'm aware of the xdg
library, but none of its functions returns the same value as the xdg-mime
command.