FilePath ready to test
This commit is contained in:
@ -7,14 +7,14 @@ internal abstract class FileHolder
|
||||
{
|
||||
List<Models.FileHolder> results = [];
|
||||
foreach ((string _, string[] files) in collection)
|
||||
results.AddRange(files.Select(l => new Models.FileHolder(l)));
|
||||
results.AddRange(files.Select(l => IFileHolder.Get(l)));
|
||||
return results;
|
||||
}
|
||||
|
||||
internal static IEnumerable<Models.FileHolder> GetFileHolders(IEnumerable<(string, string)> collection)
|
||||
{
|
||||
foreach ((string _, string file) in collection)
|
||||
yield return new(file);
|
||||
yield return IFileHolder.Get(file);
|
||||
}
|
||||
|
||||
internal static IEnumerable<(string, string[])> GetFiles(string root, string searchPattern)
|
||||
|
Reference in New Issue
Block a user