Changes the directory structure