From 62a1dc8c7a55bc94f0a66221fef8ae19744d4f2b Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sun, 17 Oct 2021 15:52:09 +0000 Subject: [PATCH] Don't prompt to overwrite dirs --- Core/ModuleInstaller.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/ModuleInstaller.cs b/Core/ModuleInstaller.cs index ea529be30b..fd2124d9e1 100644 --- a/Core/ModuleInstaller.cs +++ b/Core/ModuleInstaller.cs @@ -413,7 +413,8 @@ private IEnumerable> FindConflictingFiles(Zi { foreach (InstallableFile file in files) { - if (File.Exists(file.destination) + if (!file.source.IsDirectory + && File.Exists(file.destination) && registry.FileOwner(ksp.ToRelativeGameDir(file.destination)) == null) { log.DebugFormat("Comparing {0}", file.destination);