Module mime.files.treemagic

Parsing mime/treemagic files.

Functions

NameDescription
treeMagicFileReader(data, sink) Reads treemagic file contents and push treemagic entries to sink.

Classes

NameDescription
TreeMagicFileException Exception thrown on parse errors while reading treemagic file.

Aliases

NameTypeDescription
TreeMagicEntry std.typecons.Tuple!(string,"mimeType",mime.treemagic.TreeMagic,"magic") MIME type name and corresponding treemagic.