mime.files.magic

Parsing mime/magic files.

Public Imports

mime.magic
public import mime.magic;

Members

Aliases

MagicEntry
alias MagicEntry = Tuple!(immutable(char)[], "mimeType", MimeMagic, "magic", bool, "deleteMagic")

MIME type name and corresponding magic.

Classes

MimeMagicFileException
class MimeMagicFileException

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

Functions

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

Reads magic file contents and push magic entries to sink.

Meta