Creating a Treeview Listing of a Directory

This has little to do with WordPress, but anyway, in your template you can grab the directory structure with scandir:

$report_files = scandir('/reports');

Now you have array of files and folders that you can manipulate ate will.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)