DirectoryInfo and filtering multiple extensions using FileInfo
Posted on 2009-05-04
I have an app that populates a list box with files from a user specified directory. I have an option to include or exclude hidden files which I filter after using the FileInfo array that is returned by the DirectoryInfo GetFiles method.
I have read and I realize that the GetFiles method does not allow for filtering by extension, it is simply a search parameter. Of course this is after I wrote the user updatable feature to add and remove extensions.
Does anyone have a way to take a delimited string get back a FileInfo array sorted alphabetically.