mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Use makePath to create any missing intermediate directories for app dir
https://github.com/lightpanda-io/browser/issues/486
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user