diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-18 12:11:03 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-18 12:11:03 -0500 |
commit | 44f374480888812456892f59a9f25f475e564819 (patch) | |
tree | 444cc5b5547fca9a0bad720ca8a4c49c14a63092 /filesystem-win.c | |
parent | 6db2ef3ce69c17f6291b30fcb9278e7d4df53c71 (diff) |
got windows build to partly work
Diffstat (limited to 'filesystem-win.c')
-rw-r--r-- | filesystem-win.c | 2 |
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) { |