<< Back to the snippet list

Looping through Folders recursively

Published: 15 Dec 2009 By Harry L

In the following code snippet I am listing out all the sub folders present in the root folder. Here I will pass the root folder path to the GetListOfSubFolders function. Internally this function will call itself recursively to list out all the subfolders present in the root folder in addition to that it will list out the subfolder’s sub folders.

Looping through Folders recursively Looping through Directories recursively

Please login to leave a comment.