Zig 0.16: one last fs/io

This commit is contained in:
LN Liberda 2026-05-23 04:18:59 +02:00
parent 4e74821cf9
commit 87317504c9

View file

@ -85,7 +85,7 @@ fn deleteCmd(path: [:0]const u8, ptr: *align(1) ?*model.Entry) bool {
ui.runCmd(&.{"/bin/sh", "-c", cmd}, null, env, true);
}
const stat = scan.statAt(std.fs.cwd(), path, false, null) catch {
const stat = scan.statAt(std.Io.Dir.cwd(), path, false, null) catch {
// Stat failed. Would be nice to display an error if it's not
// 'FileNotFound', but w/e, let's just assume the item has been
// deleted as expected.