code: def _is_finished_dumping(directory):
      
      #if _is_finished_dumping_checkpoint(directory):
      #    return True
      # Check final output files; handles both HiSeq and GAII
      run_info = os.path.join(directory, "RunInfo.xml")
      hi_seq_checkpoint = "Basecalling_Netcopy_complete_Read%s.txt" % \
                          _expected_reads(run_info)
      to_check = ["Basecalling_Netcopy_complete_SINGLEREAD.txt",
                  "Basecalling_Netcopy_complete_READ2.txt",
                  hi_seq_checkpoint]
      return reduce(operator.or_,
                    [os.path.exists(os.path.join(directory, f)) for f in to_check])
docs: Determine if the sequencing directory has all files.
  
      The final checkpoint file will differ depending if we are a
      single or paired end run.