| ... | @@ -453,6 +453,8 @@ pub const Dir = struct { | ... | @@ -453,6 +453,8 @@ pub const Dir = struct { |
| 453 | | 453 | |
| 454 | pub const Error = IteratorError; | 454 | pub const Error = IteratorError; |
| 455 | | 455 | |
| | 456 | /// Memory such as file names referenced in this returned entry becomes invalid |
| | 457 | /// with subsequent calls to `next`, as well as when this `Dir` is deinitialized. |
| 456 | pub fn next(self: *Self) Error!?Entry { | 458 | pub fn next(self: *Self) Error!?Entry { |
| 457 | start_over: while (true) { | 459 | start_over: while (true) { |
| 458 | const w = os.windows; | 460 | const w = os.windows; |