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

StackOverflow https://stackoverflow.com/questions/685378

  •  22-08-2019
  •  | 
  •  

Question

This question already has an answer here:

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.

Was it helpful?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top