Terminal program for printing ROOT file contents in a tree format

Sometimes, TFolder objects are stored in files (an example is present in an old thread). Would it be possible to add (recursive) “traversing” of such objects, too?