File tree reader and flattner.