From 2657ad16ea702e36eeb797483e54c014706bbb8c Mon Sep 17 00:00:00 2001 From: Robert Morrison Date: Tue, 21 Jun 2022 22:37:30 +0100 Subject: [PATCH] Add functionality to discover convertable files --- Program.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Program.cs b/Program.cs index d9b67f9..d0c9a0f 100644 --- a/Program.cs +++ b/Program.cs @@ -120,6 +120,12 @@ class Program Environment.Exit(1); } + List ConvertableInputFiles = new(); + foreach (var ext in _conversionTypes) + { + ConvertableInputFiles.AddRange(GetAllFilesMatching($".*{ext}",_inputDirectory)); + } + Log.Debug("Files matching conversiontypes: {@conversionType} found {count} \n {files} ",_conversionTypes,ConvertableInputFiles.Count(),ConvertableInputFiles); Log.CloseAndFlush();