              ``True`` if extracting in batch mode otherwise False
          """
          self._pathoutput = location
  
      def delete_preview(self) -> None:
          """ Delete the preview files in the cache folder and reset the image cache.
  
          Should be called when terminating tasks, or when Faceswap starts up or shuts down.
          """
 
</s> remove     def delete_preview(self):
 </s> add     def delete_preview(self) -> None: </s> remove     def _get_newest_filenames(self, image_files):
 </s> add     def _get_newest_folder(self) -> str:
        """ Obtain the most recent folder created in the extraction output folder when processing
        in batch mode.

        Returns
        -------
        str
            The most recently modified folder within the parent output folder. If no folders have
            been created, returns the parent output folder

        """
        assert self._pathoutput is not None
        folders = [os.path.join(self._pathoutput, folder)
                   for folder in os.listdir(self._pathoutput)
                   if os.path.isdir(os.path.join(self._pathoutput, folder))]
        folders.sort(key=os.path.getmtime)
        retval = folders[-1] if folders else self._pathoutput
        logger.debug("sorted folders: %s, return value: %s", folders, retval)
        return retval

    def _get_newest_filenames(self, image_files: List[str]) -> List[str]: </s> remove     def load_training_preview(self):
 </s> add     def load_training_preview(self) -> None:
        self._batch_mode = batch_mode
              ``True`` if extracting in batch mode otherwise False
          """
          self._pathoutput = location
        self._batch_mode = batch_mode
  
      def delete_preview(self) -> None:
          """ Delete the preview files in the cache folder and reset the image cache.
  
          Should be called when terminating tasks, or when Faceswap starts up or shuts down.
          """
keep keep add keep keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py