Fix file extension check
This commit is contained in:
parent
5ff0e446ed
commit
8e10bf3b16
|
@ -297,7 +297,7 @@ func (s *Session) ExtractZIP(srcPath string, maxCSVs int) (string, []string, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip files without the .csv extension.
|
// Skip files without the .csv extension.
|
||||||
if !strings.Contains(strings.ToLower(fName), "csv") {
|
if !strings.HasSuffix(strings.ToLower(fName), ".csv") {
|
||||||
s.log.Printf("skipping non .csv file '%s'", fName)
|
s.log.Printf("skipping non .csv file '%s'", fName)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue