mime.treemagic

Treemagic rules object representation.

Members

Functions

matchTreeMagic
bool matchTreeMagic(string mountPoint, TreeMagic treeMagic)

Test if layout of mountPoint matches given treeMagic. Note: This function does not check if mountPoint is actually mount point.

treeMimeType
string treeMimeType(string mountPoint, string treemagicPath)

Detect MIME type of mounted device using treemagic file.

treeMimeType
string treeMimeType(string mountPoint, const(string)[] mimePaths)

Detect MIME type of mounted device using treemagic files.

Structs

TreeMagic
struct TreeMagic

Treemagic definition. Represents <treemagic> element in souce XML.

TreeMatch
struct TreeMatch

One of treemagic rules in treemagic definition. Represents <treematch> element in source XML.

Meta