detect

fun detect(path: Path): Pair<FileFormat<*>, String>?

An exhaustive search for within all values in Public.MEDIUMS to determine a potential net.exoad.filemaestro.FileFormat object that fits path. This search uses the file extension without searching for magic numbers or parsing the file directly.

Returns a Pair with Pair.first being the file format and Pair.second being the medium key

If no match is found, null is returned.