MimeDatabase.mimeTypeForFile

Get MIME type for file and its data using methods describing in options.

  1. Rebindable!(const(MimeType)) mimeTypeForFile(string fileName, const(void)[] data, Match options)
    class MimeDatabase
    Rebindable!(const(MimeType))
    mimeTypeForFile
    (
    string fileName
    ,
    const(void)[] data
    ,)
  2. Rebindable!(const(MimeType)) mimeTypeForFile(string fileName, Match options)

Parameters

fileName string

Name of file

data const(void)[]

Data chunk read from the file. It's not necessary to read the whole file.

options Match

Lookup options

Meta