Changes directory structure