diff options
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) { |