From 7200355f52e960dc6fd7559b2bb955780ded40c0 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Wed, 1 May 2024 12:41:34 -0400 Subject: [PATCH] exclue .bak files from game copy --- SPTInstaller/Helpers/FileHelper.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SPTInstaller/Helpers/FileHelper.cs b/SPTInstaller/Helpers/FileHelper.cs index 92edaba..18fa8b9 100644 --- a/SPTInstaller/Helpers/FileHelper.cs +++ b/SPTInstaller/Helpers/FileHelper.cs @@ -70,6 +70,13 @@ public static class FileHelper $"EXCLUSION FOUND :: FILE\nExclusion: '{exclusion}'\nPath: '{currentFileRelativePath}'"); break; } + + if (currentFileRelativePath.EndsWith(".bak")) + { + exclude = true; + Log.Debug($"EXCLUDING BAK FILE :: {currentFileRelativePath}"); + break; + } } if (exclude)