See our review from 5 of the best tree view plugin to display hierarchically folders in your project. You may want to leave aside the task of create your own treeview for display a filelist or other kind of treeview as there are many plugins that does the trick for you. These treeview plugins are the best Open Source TreeView plugins that you can find for javascript and jQuery. 5. jQuery file tree
