detect

abstract fun detect(pathName: String): String

Given a filename (or path segment), return its MIME type, e.g. "text/plain" or "image/png".