c#get all files in directory and subdirectories with extension code example
Example: get all files in all subdirectories c#
Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories)
Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories)