From 828889a0e563782c1f59203eca026bc867722701 Mon Sep 17 00:00:00 2001 From: cordain Date: Thu, 4 Dec 2025 21:17:17 +0100 Subject: [PATCH] Assume build.conf not exists if build file found --- nob.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nob.h b/nob.h index 66a030b..31ccfc3 100644 --- a/nob.h +++ b/nob.h @@ -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; }