Generate a tree of file metadata that matches d3's hierarchy layout format