code: def dump_all_outputs(self, job, target, abspaths=None):
          
          from pathlib import Path
          root = Path(native_str(target))
  
          for outputpath, outputfile in job.get_output().items():
              path = Path(native_str(outputpath))
  
              # redirect absolute paths into the appropriate subdirectory
              if path.is_absolute():
                  if abspaths:
                      path = Path(native_str(abspaths), *path.parts[1:])
                  else:
                      continue
  
              dest = root / path
              if not dest.parent.is_dir():
                  dest.parent.mkdir(parents=True)
              if dest.is_file():
                  dest.unlink()
              try:
                  outputfile.put(str(dest))
              except IsADirectoryError:
                  if not dest.is_dir():
                      dest.mkdir(parents=True)
docs: Default dumping strategy - potentially slow for large numbers of files
  
          Subclasses should offer faster implementations, if available