Re: glibmm, how to get the mime type of a file?



thank you Kjell!

regards,
Nicolas

Le Thu, 13 Aug 2015 10:30:52 +0200,
Kjell Ahlstedt <kjell ahlstedt bredband net> a écrit :

Den 2015-08-13 04:31, Nicolas Jäger skrev:
Hi,
I guess this mailing list is also for glibmm, right ? I don't find
the function to get the mime type (Linux). I was expecting to use
`FileInfo`.

Someone can tell me how I do that ?

regards,
Nicolas J.

You can combine Gio::FileInfo::get_content_type() and 
Gio::content_type_get_mime_type().




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]