treeMimeType

Detect MIME type of mounted device using treemagic file.

  1. string treeMimeType(string mountPoint, string treemagicPath)
    @trusted
    string
    treeMimeType
    (
    string mountPoint
    ,
    scope string treemagicPath
    )
  2. string treeMimeType(string mountPoint, const(string)[] mimePaths)

Parameters

mountPoint string

Path to mount point of device.

treemagicPath string

Path to treemagic file.

Return Value

Type: string

MIME type name or null if could not detect.

See Also

mime.files.treeMagicFileReader

Meta