import mimetypes


def getMimeType(pathToFile):
    """returns mime type

    Args:
        pathToFile (String): absolute path

    Returns:
        String: mime type
    """
    mime = mimetypes.guess_type(pathToFile, strict=True)

    return mime[0]