added FolderStructure class to support DFS tree traversal.