restoring directory structure from generator