From 7ae7407c2b3aa045716b08f1a3d125a32b39e011 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Wed, 11 Dec 2024 17:13:47 +0000 Subject: [PATCH] Fix #4: Handle non-existent directories in install config --- KeepersCompound.LGS/ResourcePathManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/KeepersCompound.LGS/ResourcePathManager.cs b/KeepersCompound.LGS/ResourcePathManager.cs index 0f17740..1a45093 100644 --- a/KeepersCompound.LGS/ResourcePathManager.cs +++ b/KeepersCompound.LGS/ResourcePathManager.cs @@ -155,6 +155,12 @@ public class ResourcePathManager foreach (var resPath in resPaths.Split('+')) { var dir = Path.Join(installPath, ConvertSeparator(resPath)); + if (!Directory.Exists(dir)) + { + continue; + } + + // TODO: This just finds the *first* respath that has these files... They should be merged foreach (var path in Directory.GetFiles(dir)) { var name = Path.GetFileName(path).ToLower();