Flattening folder structure