code: def _copy(source, destination, ignore=None):
      
      if os.path.isdir(source):
          shutil.copytree(source, destination, symlinks=True, ignore=ignore)
      else:
          shutil.copy(source, destination)
  
      shutil.copystat(source, destination)
docs: Effective copy