diff --git a/src/util/funcs.zig b/src/util/funcs.zig index cfedfa88c941f085b5215de2b6a542badf10be11..dacbd24c75f1fcb96e48c0786f45dbb2fc5b4b23 100644 --- a/src/util/funcs.zig +++ b/src/util/funcs.zig @@ -54,7 +54,7 @@ pub fn does_file_exist(fpath: []const u8) !bool { } pub fn does_folder_exist(fpath: []const u8) !bool { - const file = try std.fs.cwd().openFile(abs_path, .{}) catch |e| switch (e) { + const file = std.fs.cwd().openFile(fpath, .{}) catch |e| switch (e) { error.FileNotFound => return false, else => return e, };