Friday, February 08, 2008 Vienna 0 Comments
I've seen lots of people asking for this, so I'm posting a recursive function that iterates through a directory and subdirectories, and lists all the files contained within.
This function takes one parameter, the directory you want to list. The function then continues looping through itself until it runs out of subdirectories and files within this directory. The function returns a string containing the files and folders contained in the directory displayed in a tree. more »