| ... | ... | @@ -2187,6 +2187,7 @@ pub const Dir = struct { |
| 2187 | 2187 | } else |err| switch (err) { |
| 2188 | 2188 | error.FileNotFound => break :handle_entry, |
| 2189 | 2189 | |
| 2190 | // Impossible because we do not pass any path separators. |
| 2190 | 2191 | error.NotDir => unreachable, |
| 2191 | 2192 | |
| 2192 | 2193 | error.IsDir => { |
| ... | ... | @@ -2268,8 +2269,6 @@ pub const Dir = struct { |
| 2268 | 2269 | } else |err| switch (err) { |
| 2269 | 2270 | error.FileNotFound => return, |
| 2270 | 2271 | |
| 2271 | | error.NotDir => unreachable, |
| 2272 | | |
| 2273 | 2272 | error.IsDir => { |
| 2274 | 2273 | treat_as_dir = true; |
| 2275 | 2274 | continue :handle_entry; |
| ... | ... | @@ -2281,6 +2280,7 @@ pub const Dir = struct { |
| 2281 | 2280 | error.NameTooLong, |
| 2282 | 2281 | error.SystemResources, |
| 2283 | 2282 | error.ReadOnlyFileSystem, |
| 2283 | error.NotDir, |
| 2284 | 2284 | error.FileSystem, |
| 2285 | 2285 | error.FileBusy, |
| 2286 | 2286 | error.BadPathName, |