OKSTHWTXR6IX3RP5B2ETYIRHN77UIGRI5ZKFNE7PE3OEKJUA74FAC
try fetchDay(allocator, opts, session, day);
const file_name = try std.fmt.allocPrint(allocator, "{s}/day{d:0>2}.txt", .{ INPUTS_DIR, day });
defer allocator.free(file_name);
const fd = cwd.openFile(file_name, std.fs.File.OpenFlags{}) catch |err| {
switch (err) {
error.FileNotFound => {
try fetchDay(allocator, opts, session, day);
continue;
},
else => return err,
}
};
defer fd.close();