Changes directory structure.