From a59d49aa9fab7eb072799daa74f3d9c34971378c Mon Sep 17 00:00:00 2001 From: Damien Date: Mon, 30 Sep 2024 10:30:03 +0200 Subject: [PATCH] [modgen] Fix retour du bug du hash sur les dossiers de modules vide --- TopModel.Generator/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) 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); }