code: def create_output_directories(self):
          
          check_or_create_dir(self.dst_path)
  
          if self.medias:
              check_or_create_dir(join(self.dst_path,
                                       self.settings['thumb_dir']))
  
          if self.medias and self.settings['keep_orig']:
              self.orig_path = join(self.dst_path, self.settings['orig_dir'])
              check_or_create_dir(self.orig_path)
docs: Create output directories for thumbnails and original images.