Adjust the structure of the directory.