| 1 | pub fn main(init: std.process.Init) !void { |
| 2 | const arena = init.arena.allocator(); |
| 3 | const args = try init.minimal.args.toSlice(arena); |
| 4 | |
| 5 | if (args.len != 2) return error.BadUsage; |
| 6 | const path = args[1]; |
| 7 | |
| 8 | const io = std.Io.Threaded.global_single_threaded.io(); |
| 9 | |
| 10 | std.Io.Dir.cwd().access(io, path, .{}) catch return error.AccessFailed; |
| 11 | } |
| 12 | |
| 13 | const std = @import("std"); |