If I have a directory structure like so on a web service that sends me a list of files and folders in the directory I request. How would you go about iterating through the entire structure. There is no recursive search, so each directory has to be pulled one at a time. I can get the directories content I request but it doesnt list any sub-directories information. I was trying to think of a way to do this with a for loop or for each loop, but I havent been able to come up with anything. I didnt write the web service so I cant include recursive directory searching in it.
Pictures
photo1.png
photo2.png
TestFolder1
April.png
MyPictures
ProfilePic.png
TestFolder2
2012
August
Photos
photo3.png
photo4.png