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