summaryrefslogtreecommitdiff
path: root/filesystem-win.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-18 12:11:03 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-18 12:11:03 -0500
commit44f374480888812456892f59a9f25f475e564819 (patch)
tree444cc5b5547fca9a0bad720ca8a4c49c14a63092 /filesystem-win.c
parent6db2ef3ce69c17f6291b30fcb9278e7d4df53c71 (diff)
got windows build to partly work
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) {