          ----------
          location: str
              The output location that has been specified for an Extract or Convert task
          """
          self._pathoutput = location
          self._batch_mode = batch_mode
  
 
</s> remove     def delete_preview(self):
 </s> add     def delete_preview(self) -> None: </s> remove     def set_faceswap_output_path(self, location):
 </s> add     def set_faceswap_output_path(self, location: str, batch_mode: bool = False) -> 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         image_files = self._get_images(self._pathoutput)
 </s> add         assert self._pathoutput is not None
        image_path = self._get_newest_folder() if self._batch_mode else self._pathoutput
        image_files = self._get_images(image_path)
        batch_mode: bool
            ``True`` if extracting in batch mode otherwise False
          ----------
          location: str
              The output location that has been specified for an Extract or Convert task
        batch_mode: bool
            ``True`` if extracting in batch mode otherwise False
          """
          self._pathoutput = location
          self._batch_mode = batch_mode
  
keep keep add keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py