library to determine file type
libmagic is a library which attempts to classify files. There are three sets of tests, performed in the following order: - filesystem tests - magic number tests - language tests
Homepage: https://www.darwinsys.com/file/