How to recursively list all the files in a directory and child directories in C#?
Shortest record
string files = Directory.GetFiles(@"your_path", "*.jpg", SearchOption.AllDirectories);