How to get all source safe sub folders using c# code? We want to get all sub folders and folders in sub folders as well. For example, TestProject has 2 folders, folder a and b. and a has sub folder a1.
Extract all paths: 1. TestProject -> a 2. TestProject -> a -> a1 3. TestProject -> b
If you want to list all the sub directories which contains only files then you can use this
but if you want just want to parse through all the directories & sub directories then you can use this