From 81759fa57aa895d67da6b8c875dbc63cf66074b4 Mon Sep 17 00:00:00 2001 From: Karl Seguin Date: Sat, 22 Mar 2025 23:53:46 +0800 Subject: [PATCH] Use makePath to create any missing intermediate directories for app dir https://github.com/lightpanda-io/browser/issues/486 --- src/app.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.zig b/src/app.zig index 94883b65..0385fece 100644 --- a/src/app.zig +++ b/src/app.zig @@ -67,7 +67,7 @@ fn getAndMakeAppDir(allocator: Allocator) ?[]const u8 { return null; }; - std.fs.makeDirAbsolute(app_dir_path) catch |err| switch (err) { + std.fs.cwd().makePath(app_dir_path) catch |err| switch (err) { error.PathAlreadyExists => return app_dir_path, else => { allocator.free(app_dir_path);