private void WriteFilesTo(string outputFolder, string outputFileName, List <AudioRebuilderFileOutput> fileOutputs) { foreach (var fileOutput in fileOutputs) { var fileOutputPath = Path.Combine(outputFolder, ExtensionMethods.AddExtension(outputFileName, fileOutput.Extension)); try { File.WriteAllBytes(fileOutputPath, fileOutput.FileBytes); Logger.Log($"Created repacked {fileOutput.Extension} file at: {fileOutputPath}"); } catch (Exception e) { Logger.Error($"Encountered an error trying to write the new files! {e}"); break; } } }