From c0fbbba586798ea967dc58857163dd371641c96b Mon Sep 17 00:00:00 2001 From: Daniel Tipping Date: Thu, 10 Jan 2019 17:38:36 +0000 Subject: [PATCH] Windows: remove directory check There's no directory check in the non-Windows code. --- tools/grib_tools.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/tools/grib_tools.c b/tools/grib_tools.c index c267ef1af..b59473bf0 100644 --- a/tools/grib_tools.c +++ b/tools/grib_tools.c @@ -535,21 +535,12 @@ static int scan(grib_context* c,grib_runtime_options* options,const char* dir) return 0; } #else -static int isWinDir(const struct _finddata_t *fileinfo) -{ - if((fileinfo->attrib & 16) == 16) - return 1; - return 0; -} static void doProcessing(grib_context* c,grib_runtime_options* options,const char* dir, const struct _finddata_t *fileinfo) { - if(isWinDir(fileinfo)) - { - if(strcmp(fileinfo->name, ".") != 0 && strcmp(fileinfo->name,"..") != 0) { - char buf[1024]; - sprintf(buf,"%s/%s",dir,fileinfo->name); - process(c,options,buf); - } + if(strcmp(fileinfo->name, ".") != 0 && strcmp(fileinfo->name,"..") != 0) { + char buf[1024]; + sprintf(buf,"%s/%s",dir,fileinfo->name); + process(c,options,buf); } } static int scan(grib_context* c,grib_runtime_options* options,const char* dir) {