FileInfo.setContentType

void setContentType(string contentType)

Sets the content type attribute for a given #GFileInfo. See [gio.types.FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE].

Parameters

contentTypea content type. See [GContentType][gio-GContentType]