Updates the directory structure.