Utiltiy to combine a hierarchy of files