code: def dump_all_outputs(self, job, target, abspaths=None):
          
          import os
          import shutil
          from pathlib import Path
  
          root = Path(native_str(target))
          true_outputs = job.get_output()
  
          if abspaths or len(true_outputs) < self.BULK_OUTPUT_FILE_THRESHOLD:
              return super().dump_all_outputs(job, root, abspaths)
  
          stagingdir = root / Path(native_str(job.workingdir)).name
          workdir = job.get_directory(job.workingdir)
          if not root.is_dir():
              root.mkdir(parents=False)
          if stagingdir.exists():
              if PY2:
                  raise IOError('Path % exists' % stagingdir)
              else:
                  raise FileExistsError(stagingdir)
          workdir.put(str(root))
          assert stagingdir.is_dir()
          assert root in stagingdir.parents
  
          for pathstr in true_outputs:
              if os.path.isabs(pathstr):
                  continue
              destpath = root / pathstr
              currpath = stagingdir / pathstr
              if not destpath.parent.is_dir():
                  destpath.parent.mkdir(parents=True)
              currpath.rename(destpath)
  
          shutil.rmtree(str(stagingdir))
docs: Specialized dumping strategy - copy the entire working directory, then discard
          the input files that came along for the ride.
  
          Not used if there are absolute paths
  
          This is slow and wasteful if there are big input files