diff --git a/TopModel.Generator/Program.cs b/TopModel.Generator/Program.cs index 148cbce4..1402c5e9 100644 --- a/TopModel.Generator/Program.cs +++ b/TopModel.Generator/Program.cs @@ -700,6 +700,11 @@ void SearchConfigFile(string dirName, int depth = 0) static string? GetFolderHash(string path) { + if (!Directory.Exists(path)) + { + return null; + } + return GetHash(Directory.EnumerateFiles(path, "*", SearchOption.AllDirectories), path); }