Allow other flags too...
Unified · Split
| @@ -1538,7 +1538,8 @@ int is_dir(file_info_t *info) · 1537 unmodified lines | ||
| 1538 | 1538 | #ifndef _WIN32 |
| 1539 | 1539 | return S_ISDIR(info->st_mode); |
| 1540 | 1540 | #else |
| 1541 | − return info->dwFileAttributes == FILE_ATTRIBUTE_DIRECTORY; | |
| 1541 | + return (info->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == | |
| 1542 | + FILE_ATTRIBUTE_DIRECTORY; | |
| 1542 | 1543 | #endif |
| 1543 | 1544 | } |
| 1544 | 1545 | |