Generate directories according to a predefined directory structure.