diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-11 23:18:42 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:09 -0800 |
| commit | 16f8af1b9a7a287ac6fdefec5949725c55cbe179 (patch) | |
| tree | 2a1a3e3fb9f7ad20da5480e1dc21a337b02830c4 /lib/std/Build/Cache/Path.zig | |
| parent | e1cf753db72425fd944f6fe9f2a991fb1de3f942 (diff) | |
| download | zig-16f8af1b9a7a287ac6fdefec5949725c55cbe179.tar.gz zig-16f8af1b9a7a287ac6fdefec5949725c55cbe179.zip | |
compiler: update various code to new fs API
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 54104afa41..51f9e7aecd 100644 --- a/lib/std/Build/Cache/Path.zig +++ b/lib/std/Build/Cache/Path.zig @@ -84,14 +84,14 @@ pub fn openDir( return p.root_dir.handle.openDir(io, joined_path, args); } -pub fn makeOpenPath(p: Path, sub_path: []const u8, opts: Io.Dir.OpenOptions) !Io.Dir { +pub fn makeOpenPath(p: Path, io: Io, sub_path: []const u8, opts: Io.Dir.OpenOptions) !Io.Dir { 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.makeOpenPath(joined_path, opts); + return p.root_dir.handle.makeOpenPath(io, joined_path, opts); } pub fn statFile(p: Path, io: Io, sub_path: []const u8) !Io.Dir.Stat { |
