diff --git a/OpenRA.Mods.Common/InstallUtils.cs b/OpenRA.Mods.Common/InstallUtils.cs index 4489c41500..92d2c9c2e8 100644 --- a/OpenRA.Mods.Common/InstallUtils.cs +++ b/OpenRA.Mods.Common/InstallUtils.cs @@ -41,8 +41,7 @@ namespace OpenRA.Mods.Common public static bool ExtractFromPackage(string srcPath, string package, string annotation, Dictionary filesByDirectory, string destPath, bool overwrite, Action onProgress, Action onError) { - if (!Directory.Exists(destPath)) - Directory.CreateDirectory(destPath); + Directory.CreateDirectory(destPath); Log.Write("debug", "Mounting {0}".F(srcPath)); Game.ModData.ModFiles.Mount(srcPath); @@ -86,6 +85,8 @@ namespace OpenRA.Mods.Common public static bool CopyFiles(string srcPath, Dictionary files, string destPath, bool overwrite, Action onProgress, Action onError) { + Directory.CreateDirectory(destPath); + foreach (var folder in files) { var targetDir = folder.Key;