Bug Fix for sourceFiles

This commit is contained in:
2024-11-20 09:50:21 -07:00
parent bd8552edea
commit ccedba10b5
3 changed files with 9 additions and 6 deletions

View File

@ -599,8 +599,8 @@ public class ProcessData : IProcessData
private void Parse(IFileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, ReadOnlyDictionary<string, string> pages, Complete complete)
{
if (!fileRead.IsEAFHosted)
fileInfoCollection.Clear();
if (fileRead is null)
throw new ArgumentNullException(nameof(fileRead));
List<string> sourceFiles = new();
List<string> missingSlots = new();
Dictionary<string, List<Detail>> slots = new();
@ -610,6 +610,9 @@ public class ProcessData : IProcessData
ParseLotSummary(logistics, pages, complete, headerFileName, slots);
string sourcePath = Path.GetDirectoryName(logistics.ReportFullPath) ?? throw new Exception();
string sourceFileNameWithoutExtension = Path.GetFileNameWithoutExtension(logistics.ReportFullPath);
foreach (FileInfo fileInfo in fileInfoCollection)
sourceFiles.Add(fileInfo.FullName);
fileInfoCollection.Clear();
foreach (KeyValuePair<string, string> keyValuePair in pages)
{
if (keyValuePair.Key == headerFileName)