From f33e1a367e68b598df6670796cb46a0d49126da2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 24 Mar 2025 17:42:26 -0400 Subject: [PATCH] Possible fix for making .build/ directory --- src/tomo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tomo.c b/src/tomo.c index 2072b52..1ce6332 100644 --- a/src/tomo.c +++ b/src/tomo.c @@ -265,7 +265,7 @@ Path_t build_file(Path_t path, const char *extension) { Path_t build_dir = Path$with_component(Path$parent(path), Text(".build")); if (mkdir(Path$as_c_string(build_dir), 0755) != 0) { - if (errno != EEXIST) + if (!Path$is_directory(build_dir, true)) err(1, "Could not make .build directory"); } return Path$with_component(build_dir, Texts(Path$base_name(path), Text$from_str(extension)));