FileInfo.getContentType

Gets the file's content type.

It is an error to call this if the #GFileInfo does not contain G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE.

class FileInfo
string
getContentType
()

Return Value

Type: string

a string containing the file's content type, or null if unknown.