diff --git a/uemis-downloader.c b/uemis-downloader.c index b79890599..2a6e5178c 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -207,7 +207,7 @@ static int number_of_file(char *path) entry = readdir(dirp); if (!entry) break; - if (entry->d_type == DT_REG) /* If the entry is a regular file */ + if (strstr(entry->d_name, ".TXT") || strstr(entry->d_name, ".txt")) /* If the entry is a regular file */ #endif count++; }