Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nob.h
Original file line number Diff line number Diff line change
Expand Up @@ -2097,7 +2097,8 @@ NOBDEF int nob_file_exists(const char *file_path)
#else
struct stat statbuf;
if (stat(file_path, &statbuf) < 0) {
if (errno == ENOENT) return 0;
if (errno == ENOENT) return 0;
if (errno == ENOTDIR) return 0;
nob_log(NOB_ERROR, "Could not check if file %s exists: %s", file_path, strerror(errno));
return -1;
}
Expand Down