Function readMediaSubtypeFile

Read MIME type from MEDIA/SUBTYPE.xml file (e.g. image/png.xml).

MimeType readMediaSubtypeFile (
  string filePath
) @trusted;

Returns

MimeType parsed from xml definition.

Throws

XMLMimeException on format error or std.file.FileException on file reading error.

See Also

readMediaSubtypeXML

Note

According to the spec MEDIA/SUBTYPE.xml files have magic, root-XML and glob fields removed. In reality glob fields stay untouched, but this may change in future and this behavior should not be relied on.