Function IMimeDetector.mimeTypesForFileName

The list of the most preferred mime types for fileName. If its length is greater than 1 it means there are many mime type with same priority matching this fileName.

abstract const(char[])[] mimeTypesForFileName (
  const(char)[] fileName
);

Returns

Array of names of the most preferred mime types for given fileName.

Note

Implementer should prefer to return arrays with unique names. Implementer is NOT expected to get the file data or state (e.g. read or stat it).