| ... | @@ -2309,13 +2309,8 @@ pub fn chdir(dir_path: []const u8) ChangeCurDirError!void { | ... | @@ -2309,13 +2309,8 @@ pub fn chdir(dir_path: []const u8) ChangeCurDirError!void { |
| 2309 | @compileError("chdir is not supported in WASI"); | 2309 | @compileError("chdir is not supported in WASI"); |
| 2310 | } else if (builtin.os.tag == .windows) { | 2310 | } else if (builtin.os.tag == .windows) { |
| 2311 | windows.SetCurrentDirectory(dir_path) catch |err| switch (err) { | 2311 | windows.SetCurrentDirectory(dir_path) catch |err| switch (err) { |
| 2312 | error.InvalidUtf8 => return error.InvalidUtf8, | | |
| 2313 | error.NameTooLong => return error.NameTooLong, | | |
| 2314 | error.FileNotFound => return error.FileNotFound, | | |
| 2315 | error.NotDir => return error.NotDir, | | |
| 2316 | error.NoDevice => return error.FileSystem, | 2312 | error.NoDevice => return error.FileSystem, |
| 2317 | error.AccessDenied => return error.AccessDenied, | 2313 | else => |e| return e, |
| 2318 | error.Unexpected => return error.Unexpected, | | |
| 2319 | }; | 2314 | }; |
| 2320 | } else { | 2315 | } else { |
| 2321 | const dir_path_c = try toPosixPath(dir_path); | 2316 | const dir_path_c = try toPosixPath(dir_path); |