Method to get all files within folder and subfolders that will return a list

The Solution to Method to get all files within folder and subfolders that will return a list is


You can use Directory.GetFiles to replace your method.

 Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories)

~ Answered on 2013-01-13 16:40:00


Most Viewed Questions: