private static void OutputLog(MigotoData data, FileInfo file) { var outputFile = file.ChangeExt(CSV.Extension); using var output = outputFile.TryOpenWrite(ui); if (output == null) { return; } LogWriter.Write(data, output); ui.Event("Export Log complete"); }