Search code examples
c#glob

How do I get a list of files in c# from a directory path which contains wildcards?


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

  • See: How to implement glob in C#