From e326ac26b95d842243cb11f90dc84d8ff0a4d321 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 24 Sep 2026 19:03:01 +0200 Subject: try creating target dir first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- src/main.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index 5988e75..a280863 100644 --- a/src/main.zig +++ b/src/main.zig @@ -149,6 +149,7 @@ const Cli = struct { defer source.close(io); // open/create destination dir + try Io.Dir.cwd().createDirPath(io, target_path); const target_dir = try Dir.init(io, Io.Dir.cwd(), target_path, .{}); defer target_dir.fd.close(io); @@ -180,6 +181,7 @@ const Cli = struct { defer root_dir.fd.close(io); // open/create destination dir + try Io.Dir.cwd().createDirPath(io, target_path); const target_dir = try Dir.init(io, Io.Dir.cwd(), target_path, .{}); defer target_dir.fd.close(io); -- cgit 1.4.1