File structure flattener