How do I get a list of files in c# from a directory path which contains wildcards? [duplicate]
Question
This question already has an answer here:
- How to implement glob in C# 4 answers
Given a path c:\someFolder\**\*.exe. How can I get a list of files using this directory path. I know that one could use Directory.GetFiles(directoryPath)
but this only works when there are no wildcard characters in directoryPath.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow