code: def printContentsOfJobStore(jobStorePath, nameOfJob=None):
      
  
      if nameOfJob:
          glob = "*" + nameOfJob + "*"
          logFile = nameOfJob + "_fileset.txt"
      else:
          glob = "*"
          logFile = "jobstore_files.txt"
          nameOfJob = ""
  
      list_of_files = recursiveGlob(directoryname=jobStorePath, glob_pattern=glob)
      if os.path.exists(logFile):
          os.remove(logFile)
      for gfile in sorted(list_of_files):
          if not gfile.endswith('.new'):
              logger.debug(nameOfJob + "File: %s", os.path.basename(gfile))
              with open(logFile, "a+") as f:
                      f.write(os.path.basename(gfile))
                      f.write("\n")
docs: Fetch a list of all files contained in the jobStore directory input if
      nameOfJob is not declared, otherwise it only prints out the names of files
      for that specific job for which it can find a match.  Also creates a logFile
      containing this same record of job files in the working directory.
  
      :param jobStorePath: Directory path to recursively look for files.
      :param nameOfJob: Default is None, which prints out all files in the jobStore.
      If specified, it will print all jobStore files that have been written to the
      jobStore by that job.