Compares file extensions to the file types