hi guys,
i want to generate the tree structure of directory. e.g. if directory is home and it has many sub directory i want to display all the sub-directories in a directory and so on till all are display. i am able to find out the directory. but the problem is how should i trace in until the last directory in a directory. like home/a/b/c/d..... until all the directories are exhausted.
[Vipassana] - It is seeing the reality as it is, And not as you want it to be.!!!
SCJP1.5.
Think recursively
Just consider one level at a time. Display contents of a node and then (recursively) for all its children (sub-dir) call this same method.