FileInfo.getContentType

string getContentType()

Gets the file's content type.

It is an error to call this if the #GFileInfo does not contain [gio.types.FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE].

Returns

a string containing the file's content type,

or null if unknown.