Match files to type categories