Module mime.treemagic

Treemagic rules object representation.

Functions

NameDescription
matchTreeMagic(mountPoint, treeMagic) Test if layout of mountPoint matches given treeMagic.
treeMimeType(mountPoint, treemagicPath) Detect MIME type of mounted device using treemagic file.
treeMimeType(mountPoint, mimePaths) Detect MIME type of mounted device using treemagic files.

Structs

NameDescription
TreeMagic Treemagic definition. Represents <treemagic> element in souce XML.
TreeMatch One of treemagic rules in treemagic definition. Represents <treematch> element in source XML.