mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
std.fs: extract Dir into separate file
This commit is contained in:
parent
e357550610
commit
c95e2e65fa
@ -247,6 +247,7 @@ set(ZIG_STAGE2_SOURCES
|
|||||||
"${CMAKE_SOURCE_DIR}/lib/std/fmt/errol/lookup.zig"
|
"${CMAKE_SOURCE_DIR}/lib/std/fmt/errol/lookup.zig"
|
||||||
"${CMAKE_SOURCE_DIR}/lib/std/fmt/parse_float.zig"
|
"${CMAKE_SOURCE_DIR}/lib/std/fmt/parse_float.zig"
|
||||||
"${CMAKE_SOURCE_DIR}/lib/std/fs.zig"
|
"${CMAKE_SOURCE_DIR}/lib/std/fs.zig"
|
||||||
|
"${CMAKE_SOURCE_DIR}/lib/std/fs/Dir.zig"
|
||||||
"${CMAKE_SOURCE_DIR}/lib/std/fs/file.zig"
|
"${CMAKE_SOURCE_DIR}/lib/std/fs/file.zig"
|
||||||
"${CMAKE_SOURCE_DIR}/lib/std/fs/get_app_data_dir.zig"
|
"${CMAKE_SOURCE_DIR}/lib/std/fs/get_app_data_dir.zig"
|
||||||
"${CMAKE_SOURCE_DIR}/lib/std/fs/path.zig"
|
"${CMAKE_SOURCE_DIR}/lib/std/fs/path.zig"
|
||||||
|
|||||||
2560
lib/std/fs.zig
2560
lib/std/fs.zig
File diff suppressed because it is too large
Load Diff
2533
lib/std/fs/Dir.zig
Normal file
2533
lib/std/fs/Dir.zig
Normal file
File diff suppressed because it is too large
Load Diff
@ -1486,7 +1486,7 @@ test ". and .. in fs.Dir functions" {
|
|||||||
|
|
||||||
try ctx.dir.writeFile(update_path, "something");
|
try ctx.dir.writeFile(update_path, "something");
|
||||||
const prev_status = try ctx.dir.updateFile(file_path, ctx.dir, update_path, .{});
|
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);
|
try ctx.dir.deleteDir(subdir_path);
|
||||||
}
|
}
|
||||||
@ -1532,7 +1532,7 @@ test ". and .. in absolute functions" {
|
|||||||
try update_file.writeAll("something");
|
try update_file.writeAll("something");
|
||||||
update_file.close();
|
update_file.close();
|
||||||
const prev_status = try fs.updateFileAbsolute(created_file_path, update_file_path, .{});
|
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);
|
try fs.deleteDirAbsolute(subdir_path);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user