diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-11 22:11:16 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:09 -0800 |
| commit | 68621afd2e203d82b6f53bf4ede951827fa98db8 (patch) | |
| tree | 60899decd0062ce7786592e49ca77ab6f80d22fd /lib/std/Build/Cache/Path.zig | |
| parent | 0e230993d51d0ecded40d5235ada4f2f64036b26 (diff) | |
| download | zig-68621afd2e203d82b6f53bf4ede951827fa98db8.tar.gz zig-68621afd2e203d82b6f53bf4ede951827fa98db8.zip | |
std.tar: update fs API calls to take io argument
Diffstat (limited to 'lib/std/Build/Cache/Path.zig')
| -rw-r--r-- | lib/std/Build/Cache/Path.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Build/Cache/Path.zig b/lib/std/Build/Cache/Path.zig index 759eb143b8..54104afa41 100644 --- a/lib/std/Build/Cache/Path.zig +++ b/lib/std/Build/Cache/Path.zig @@ -94,14 +94,14 @@ pub fn makeOpenPath(p: Path, sub_path: []const u8, opts: Io.Dir.OpenOptions) !Io return p.root_dir.handle.makeOpenPath(joined_path, opts); } -pub fn statFile(p: Path, sub_path: []const u8) !Io.Dir.Stat { +pub fn statFile(p: Path, io: Io, sub_path: []const u8) !Io.Dir.Stat { var buf: [fs.max_path_bytes]u8 = undefined; const joined_path = if (p.sub_path.len == 0) sub_path else p: { break :p std.fmt.bufPrint(&buf, "{s}" ++ fs.path.sep_str ++ "{s}", .{ p.sub_path, sub_path, }) catch return error.NameTooLong; }; - return p.root_dir.handle.statFile(joined_path); + return p.root_dir.handle.statFile(io, joined_path, .{}); } pub fn atomicFile( |
