diff --git a/TopModel.Generator/Program.cs b/TopModel.Generator/Program.cs index 97f13f3b..c705ea45 100644 --- a/TopModel.Generator/Program.cs +++ b/TopModel.Generator/Program.cs @@ -628,6 +628,10 @@ void HandleFile(FileInfo file) static string? GetFolderHash(string path) { var md5 = MD5.Create(); + if (!Directory.Exists(path)) + { + return null; + } var files = Directory.GetFiles(path, "*", SearchOption.AllDirectories).OrderBy(p => p).ToList(); foreach (var file in files)