Module mime.files.magic

Parsing mime/magic files.

Functions

NameDescription
magicFileReader(data, sink) Reads magic file contents and push magic entries to sink.

Classes

NameDescription
MimeMagicFileException Exception thrown on parse errors while reading shared MIME database magic file.

Aliases

NameTypeDescription
MagicEntry std.typecons.Tuple!(string,"mimeType",mime.magic.MimeMagic,"magic",bool,"deleteMagic") MIME type name and corresponding magic.