diff options
Diffstat (limited to 'src/ninep/sources.zig')
| -rw-r--r-- | src/ninep/sources.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ninep/sources.zig b/src/ninep/sources.zig index 846ab758..32edb1f6 100644 --- a/src/ninep/sources.zig +++ b/src/ninep/sources.zig @@ -69,7 +69,7 @@ pub fn handle(p: *Pardes, req: Req) Reply { const found = info(req.node) orelse return Reply.fail(req.tag, E.NOENT); const attr: Reply.Attr = .{ .node = req.node, - .name = std.fs.path.basename(found.path), + .name = std.Io.Dir.path.basename(found.path), .dir = found.dir, .size = if (found.dir) 0 else found.contents.len, .mode = if (found.dir) 0o555 else 0o444, @@ -82,7 +82,7 @@ pub fn handle(p: *Pardes, req: Req) Reply { .lookup => { if (!found.dir) return Reply.fail(req.tag, E.NOTDIR); if (std.mem.eql(u8, req.data, "..")) { - const parent = std.fs.path.dirname(found.path) orelse ""; + const parent = std.Io.Dir.path.dirname(found.path) orelse ""; if (parent.len == 0) return tree.handle(p, .{ .tag = req.tag, .op = .getattr, .node = tree.root }); const parent_node = node(parent) orelse return Reply.fail(req.tag, E.NOENT); return handle(p, .{ .tag = req.tag, .op = .getattr, .node = parent_node }); |
