c# find all files of type sub directories code example
Example: c# list all files in a directory and subdirectory
string[] allfiles = Directory.GetFiles("path/to/dir", "*.*", SearchOption.AllDirectories);
string[] allfiles = Directory.GetFiles("path/to/dir", "*.*", SearchOption.AllDirectories);