reset the dir structure
update the dir structure