c# finding file in directories
I tried the following:
string filePaths = Directory.GetFiles(@"c:\plugins\*\", "plugin.json");
But couldn't get it to work, how would I do the following?
If you want to search files matching plugin.json pattern in all sub-directories of c:\plugins:
Directory.GetFiles(@"c:\plugins\", "plugin.json", SearchOption.AllDirectories);