readMimePackageFile

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

readMimePackageFile
(
string filePath
)

Return Value

Forward range of mime.type.MimeType elements parsed from xml definition.

Throws

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

See Also

mime.xml.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.

Meta