Skip to content

Commit

Permalink
[modgen] Fix retour du bug du hash sur les dossiers de modules vide
Browse files Browse the repository at this point in the history
  • Loading branch information
JabX committed Sep 30, 2024
1 parent 2c0706e commit a59d49a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TopModel.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a59d49a

Please sign in to comment.