authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-15 06:46:04 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-15 06:46:04 -08:00
logcc763ba5b0335a3859f042750b781690e1fba9df
tree953e084805ff31d311ccba3115c97e44f7cd8c87
parent58e0dbf66b03395592a5f0c5acde0dfdf05a7c94

util/funcs: fix does_folder_exist


1 files changed, 1 insertions(+), 1 deletions(-)

src/util/funcs.zig+1-1
......@@ -54,7 +54,7 @@ pub fn does_file_exist(fpath: []const u8) !bool {
5454}
5555
5656pub fn does_folder_exist(fpath: []const u8) !bool {
57 const file = try std.fs.cwd().openFile(abs_path, .{}) catch |e| switch (e) {
57 const file = std.fs.cwd().openFile(fpath, .{}) catch |e| switch (e) {
5858 error.FileNotFound => return false,
5959 else => return e,
6060 };