in tools/mconnect/parser/parser.go [94:101]
func ValidFileFormat(path string) error {
// Verifying the CAST file extension is correct.
extension := filepath.Ext(path)
if !(extension == ".csv" || extension == ".txt") {
return messages.WrongFileFormatError{FileFormat: extension}.Error()
}
return nil
}