list the contents of a directory as a tree structure