Function readMimePackageFile

Lazily read MIME types from packages/package_name.xml file (e.g. packages/freedesktop.org.xml).

mime.xml.XMLPackageRange readMimePackageFile (
  string filePath
);

Returns

Forward range of MimeType elements parsed from xml definition.

Throws

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

See Also

readMimePackageXML

Note

Package files are source files. They may be not synced with output files produced by update-mime-database (e.g. if source file had been changed, but the mentioned utility was not called after that) Source files however contain the most complete definition of MIME type including globs, magic rules and XML namespaces.