this PHP function displays any given directory structure as recursive list.
it even outputs nice HTML markup code with indenting.

copy the code of directories / directory structure to list

click here to select all the code