summaryrefslogtreecommitdiff
path: root/filesystem-win.c
diff options
context:
space:
mode:
Diffstat (limited to 'filesystem-win.c')
-rw-r--r--filesystem-win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filesystem-win.c b/filesystem-win.c
index 52dc64d..25b8d95 100644
--- a/filesystem-win.c
+++ b/filesystem-win.c
@@ -6,7 +6,7 @@ static bool fs_file_exists(char const *path) {
struct _stat statbuf = {0};
if (_stat(path, &statbuf) != 0)
return false;
- return statbuf.st_mode == _S_IFREG;
+ return (statbuf.st_mode & _S_IFREG) != 0;
}
static char **fs_list_directory(char const *dirname) {