From 315b54822a5992978454785c024e37ec942d732d Mon Sep 17 00:00:00 2001 From: CoderJoshDK <74162303+CoderJoshDK@users.noreply.github.com> Date: Wed, 24 Sep 2025 12:08:12 -0400 Subject: [PATCH] fix: file creation when directory already exists --- src/config/Config.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index 1ef9de947..a3a8388a5 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -3351,7 +3351,7 @@ pub fn loadOptionalFile( fn writeConfigTemplate(path: []const u8) !void { log.info("creating template config file: path={s}", .{path}); if (std.fs.path.dirname(path)) |dir_path| { - try std.fs.makeDirAbsolute(dir_path); + try std.fs.cwd().makePath(dir_path); } const file = try std.fs.createFileAbsolute(path, .{}); defer file.close();