| ... | ... | @@ -2355,7 +2355,10 @@ pub fn unlinkZ(file_path: [*:0]const u8) UnlinkError!void { |
| 2355 | 2355 | |
| 2356 | 2356 | /// Windows-only. Same as `unlink` except the parameter is null-terminated, WTF16 encoded. |
| 2357 | 2357 | pub fn unlinkW(file_path_w: []const u16) UnlinkError!void { |
| 2358 | | return windows.DeleteFile(file_path_w, .{ .dir = std.fs.cwd().fd }); |
| 2358 | windows.DeleteFile(file_path_w, .{ .dir = std.fs.cwd().fd }) catch |err| switch (err) { |
| 2359 | error.DirNotEmpty => unreachable, // we're not passing .remove_dir = true |
| 2360 | else => |e| return e, |
| 2361 | }; |
| 2359 | 2362 | } |
| 2360 | 2363 | |
| 2361 | 2364 | pub const UnlinkatError = UnlinkError || error{ |