std.fs: extract Dir into separate file

This commit is contained in:
Andrew Kelley
2023-11-22 13:50:31 -07:00
parent e357550610
commit c95e2e65fa
4 changed files with 2567 additions and 2531 deletions

File diff suppressed because it is too large Load Diff

2533
lib/std/fs/Dir.zig Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1486,7 +1486,7 @@ test ". and .. in fs.Dir functions" {
try ctx.dir.writeFile(update_path, "something");
const prev_status = try ctx.dir.updateFile(file_path, ctx.dir, update_path, .{});
try testing.expectEqual(fs.PrevStatus.stale, prev_status);
try testing.expectEqual(fs.Dir.PrevStatus.stale, prev_status);
try ctx.dir.deleteDir(subdir_path);
}
@@ -1532,7 +1532,7 @@ test ". and .. in absolute functions" {
try update_file.writeAll("something");
update_file.close();
const prev_status = try fs.updateFileAbsolute(created_file_path, update_file_path, .{});
try testing.expectEqual(fs.PrevStatus.stale, prev_status);
try testing.expectEqual(fs.Dir.PrevStatus.stale, prev_status);
try fs.deleteDirAbsolute(subdir_path);
}