Only create directories once.