diff --git a/linux/list_devices.c b/linux/list_devices.c index dd06c5a..7d77e3c 100644 --- a/linux/list_devices.c +++ b/linux/list_devices.c @@ -60,7 +60,7 @@ DeviceInfoList* ListDevices() while(dirent) { - if(dirent->d_type != DT_REG && dirent->d_type != DT_LNK) + if((dirent->d_type != DT_DIR && dirent->d_type != DT_LNK) || dirent->d_name[0] == '.') { dirent = readdir(dir); continue;