Skip to content

Commit

Permalink
Changed: Delete pre-existing folders when extracting new mods.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Nov 29, 2022
1 parent d60678d commit 50f18cc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ public static string CopyPackagesFromExtractFolderToTargetDir(string packageFold
string configId = config.Config.ModId;
string configDirectory = Path.GetDirectoryName(config.Path)!;
returnResult = Path.Combine(packageFolder, IO.Utility.IOEx.ForceValidFilePath(configId));
try { Directory.Delete(returnResult, true); }
catch (Exception) { }
IOEx.MoveDirectory(configDirectory, returnResult);
}

Expand Down

0 comments on commit 50f18cc

Please sign in to comment.