  
      def output_file(self, output_message, items_discovered):
          """ Save the output to a text file in the frames directory """
          now = datetime.now().strftime("%Y%m%d_%H%M%S")
          filename = "{}_{}.txt".format(self.output_message.replace(" ", "_").lower(), now)
          output_file = os.path.join(self.source_dir, filename)
          logger.info("Saving %s result(s) to '%s'", items_discovered, output_file)
          with open(output_file, "w") as f_output:
              f_output.write(output_message)
  
      def move_file(self, items_output):
 
</s> remove         folder_name = "{}_{}".format(self.output_message.replace(" ", "_").lower(), now)
        output_folder = os.path.join(self.source_dir, folder_name)
 </s> add         folder_name = "{}{}_{}".format(self.get_filename_prefix,
                                       self.output_message.replace(" ", "_").lower(), now)
        dst_dir = self.get_output_folder()
        output_folder = os.path.join(dst_dir, folder_name) </s> remove         if self.frames.vid_cap:
            dest_folder = os.path.split(self.frames.folder)[0]
 </s> add         if self.frames.is_video:
            dest_folder = os.path.dirname(self.frames.folder)
        dst_dir = self.get_output_folder()
        filename = "{}{}_{}.txt".format(self.get_filename_prefix(),
                                        self.output_message.replace(" ", "_").lower(),
                                        now)
        output_file = os.path.join(dst_dir, filename)
  
      def output_file(self, output_message, items_discovered):
          """ Save the output to a text file in the frames directory """
          now = datetime.now().strftime("%Y%m%d_%H%M%S")
        dst_dir = self.get_output_folder()
        filename = "{}{}_{}.txt".format(self.get_filename_prefix(),
                                        self.output_message.replace(" ", "_").lower(),
                                        now)
        output_file = os.path.join(dst_dir, filename)
        dst_dir = self.get_output_folder()
        filename = "{}{}_{}.txt".format(self.get_filename_prefix(),
                                        self.output_message.replace(" ", "_").lower(),
                                        now)
        output_file = os.path.join(dst_dir, filename)
          logger.info("Saving %s result(s) to '%s'", items_discovered, output_file)
          with open(output_file, "w") as f_output:
              f_output.write(output_message)
  
      def move_file(self, items_output):
keep keep keep keep replace replace keep keep keep keep keep
 Fix output for alignments tool tasks when input is a video 
tools/lib_alignments/jobs.py