4

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.

vartec
  • 125,354
  • 36
  • 211
  • 241
Draco
  • 15,778
  • 23
  • 76
  • 91

1 Answers1

5

See: How to implement glob in C#

Community
  • 1
  • 1
vartec
  • 125,354
  • 36
  • 211
  • 241