      """ Object to hold the frames that are to be checked against """
  
      def process_folder(self):
          """ Iterate through the frames dir pulling the base filename """
          logger.info("Loading file list from %s", self.folder)
          iterator = self.process_video if self.vid_cap else self.process_frames
          for item in iterator():
              yield item
  
      def process_frames(self):
 
</s> remove         os.makedirs(self.faces_dir)
 </s> add  </s> remove         elif os.path.isdir(self.faces_dir):
            err = "ERROR: Folder already exists at {}".format(self.faces_dir)
 </s> add         elif not os.path.isdir(self.faces_dir):
            logger.debug("Creating folder: '%s'", self.faces_dir)
            os.makedirs(self.faces_dir)
        elif os.listdir(self.faces_dir):
            err = "ERROR: Output faces folder should be empty: '{}'".format(self.faces_dir)
      """ Object to hold the frames that are to be checked against """
  
      def process_folder(self):
          """ Iterate through the frames dir pulling the base filename """

          iterator = self.process_video if self.vid_cap else self.process_frames
          for item in iterator():
              yield item
  
      def process_frames(self):
keep keep keep keep replace keep keep keep keep keep
 Alignments tool: Allow empty folder/non existant folder for extract 
tools/lib_alignments/media.py