From 77671575bd2f481651ea54e956ac5c7da8d63710 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 12:14:58 -0300 Subject: idioms #1, std.fs's deprecated aliases in the hosts: std.fs.path and std.fs.max_path_bytes are std.Io.Dir.path and std.Io.Dir.max_path_bytes in 0.17, so the hosts name them there Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/file_watch.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/file_watch.zig') diff --git a/src/file_watch.zig b/src/file_watch.zig index 812c1791..1e8c450a 100644 --- a/src/file_watch.zig +++ b/src/file_watch.zig @@ -414,7 +414,7 @@ pub fn watchPane( pardes.turn.yield(); defer pardes.turn.back(); const stat = @import("fs.zig").statPath(std.Io.Threaded.global_single_threaded.io(), watched_path, .{}) catch null; - const dir = if (stat != null and stat.?.kind == .directory) watched_path else std.fs.path.dirname(watched_path) orelse "."; + const dir = if (stat != null and stat.?.kind == .directory) watched_path else std.Io.Dir.path.dirname(watched_path) orelse "."; var dir_buf: [4096:0]u8 = undefined; if (dir.len >= dir_buf.len) return; @memcpy(dir_buf[0..dir.len], dir); @@ -864,9 +864,9 @@ test "theme watch reloads valid ZON and keeps the last theme across a bad save" const gpa = std.testing.allocator; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); - var base_buf: [std.fs.max_path_bytes]u8 = undefined; + var base_buf: [std.Io.Dir.max_path_bytes]u8 = undefined; const base_len = try tmp.dir.realPath(io, &base_buf); - const path = try std.fs.path.join(gpa, &.{ base_buf[0..base_len], "mine.zon" }); + const path = try std.Io.Dir.path.join(gpa, &.{ base_buf[0..base_len], "mine.zon" }); defer gpa.free(path); var first = pardes.themes[0]; -- cgit v1.3