04-05-2024, 04:27 PM
The `GetFiles` function in Code1 does not support regular expressions. Therefore, in Code2, I used the `enumFiles` function from LA, which seems a bit complex. It would be very convenient to have an extension method for `GetFiles` that supports regular expressions.
Code1:
Code2:
Code1:
var ar1 = Directory.GetFiles(dirPath, "AZ?.jpeg"); //files as string[]
print.it(ar1);
var dimg = new clipboardData().AddFiles(ar1);
Code2: