Skip to content

Commit

Permalink
Windows fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Oct 1, 2024
1 parent 717c6e3 commit 5cdec78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sources/iron.h
Original file line number Diff line number Diff line change
Expand Up @@ -2528,7 +2528,11 @@ char *iron_read_directory(char *path) {
}

#ifdef KINC_WINDOWS
if (FILE_ATTRIBUTE_HIDDEN & GetFileAttributesW(f.name)) {
char file_path[512];
strcpy(file_path, path);
strcat(file_path, "\\");
strcat(file_path, f.name);
if (FILE_ATTRIBUTE_HIDDEN & GetFileAttributesA(file_path)) {
continue; // Skip hidden files
}
#endif
Expand Down

0 comments on commit 5cdec78

Please sign in to comment.