maintain the folder structure