has_tsv = has_tsv or os.path.splitext(f.filename)[1] == '.tsv'