Adjusts the directory structure