I'm looping through directories to get a list of all the files in a web folder. I'd like to return only files with certain extensions such as .htm, .html, .asp, .aspx, etc.
From what I can tell, when doing a GetFiles(directory.FullName, Filter) the Filter can only contain something like "*.aspx". How do I filter, efficiently, for certain extensions?
I am currently or'ing together a bunch of EndsWith on the file names but there has to be a better way!![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
From what I can tell, when doing a GetFiles(directory.FullName, Filter) the Filter can only contain something like "*.aspx". How do I filter, efficiently, for certain extensions?
I am currently or'ing together a bunch of EndsWith on the file names but there has to be a better way!