mime.files.treemagic

Parsing mime/treemagic files.

Public Imports

mime.treemagic
public import mime.treemagic;

Members

Aliases

TreeMagicEntry
alias TreeMagicEntry = Tuple!(immutable(char)[], "mimeType", TreeMagic, "magic")

MIME type name and corresponding treemagic.

Classes

TreeMagicFileException
class TreeMagicFileException

Exception thrown on parse errors while reading treemagic file.

Functions

treeMagicFileReader
void treeMagicFileReader(const(void)[] data, OutRange sink)

Reads treemagic file contents and push treemagic entries to sink.

Meta