private static void FindImages(ProgramArguments arguments, List <string> images) { List <string> inputFiles = new List <string>(); if (!string.IsNullOrEmpty(arguments.il)) { using (StreamReader reader = new StreamReader(arguments.il)) { while (!reader.EndOfStream) { inputFiles.Add(reader.ReadLine()); } } } if (arguments.input != null) { inputFiles.AddRange(arguments.input); } foreach (var str in inputFiles) { if (MiscHelper.IsImageFile(str)) { images.Add(str); } } }
private static void FindImages(ProgramArguments arguments, List <string> images) { if (!string.IsNullOrEmpty(arguments.il)) { using (StreamReader reader = new StreamReader(arguments.il)) { while (!reader.EndOfStream) { string str = reader.ReadLine(); if (MiscHelper.IsImageFile(str)) { images.Add(str); } } } } if (arguments.input != null) { MiscHelper.AddFiles(arguments.input, images); } }