diff --git a/Synthesis.Bethesda.GUI/Services/Profile/Exporter/ProfileExporter.cs b/Synthesis.Bethesda.GUI/Services/Profile/Exporter/ProfileExporter.cs index b4b0a5c1..bcad8e9e 100644 --- a/Synthesis.Bethesda.GUI/Services/Profile/Exporter/ProfileExporter.cs +++ b/Synthesis.Bethesda.GUI/Services/Profile/Exporter/ProfileExporter.cs @@ -50,8 +50,15 @@ public void Export(string id) gitPatcher.AutoUpdateToBranchTip = false; gitPatcher.LatestTag = false; } - var subDir = "Export"; - Directory.CreateDirectory(subDir); + DirectoryPath subDir = "Export"; + if (subDir.Exists) + { + subDir.DeleteEntireFolder(deleteFolderItself: false); + } + else + { + Directory.CreateDirectory(subDir); + } File.WriteAllText( Path.Combine(subDir, PipelinePaths.Path), JsonConvert.SerializeObject(pipeSettings, Formatting.Indented, Execution.Constants.JsonSettings));