The author of the original text does not allow reprint, send a chain here, everybody goes to see.
https://codedefault.com/s/how-do-i-call-directory-getfiles-with-multiple-filters-in-csharp-application/
For backup. Here’s a brief idea Directory.GetFiles.Where Use lambda expressions to filter.
To be more specific, one is used in where. Endwith, and the other is used in where Regex.IsMatch Regular expression for.
For example, to filter out. JPG /. PNG /. TIFF /. BMP /. GIF files, the regular expression is:
"^.+\.(jpg|png|bmp|gif|tiff)$"