aboutsummaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c2
1 files changed, 1 insertions, 1 deletions
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++;
}