old_contents: 
  def copy_files(src, target_node, parent=None, name=None):
      """Copy the files from src to the target node
      :param Folder src: The source to copy children from
      :param Node target_node: The node to copy files to
      :param Folder parent: The parent of to attach the clone of src to, if applicable
      """
      assert not parent or not parent.is_file, 'Parent must be a folder'
  
      cloned = src.clone()
      cloned.parent = parent
      cloned.target = target_node
      cloned.name = name or cloned.name
      cloned.copied_from = src
  
      cloned.save()
  
      if src.is_file and src.versions.exists():
          fileversions = src.versions.select_related('region').order_by('-created')
          most_recent_fileversion = fileversions.first()
          if most_recent_fileversion.region != target_node.osfstorage_region:
              # add all original version except the most recent
              cloned.versions.add(*fileversions[1:])
              # create a new most recent version and update the region before adding
              new_fileversion = most_recent_fileversion.clone()
              new_fileversion.region = target_node.osfstorage_region
              new_fileversion.save()
              cloned.versions.add(new_fileversion)
          else:
              cloned.versions.add(*src.versions.all())
      if not src.is_file:
          for child in src.children:
              copy_files(child, target_node, parent=cloned)
  
      return cloned
  
new_contents: 
  def copy_files(src, target_node, parent=None, name=None):
      """Copy the files from src to the target node
      :param Folder src: The source to copy children from
      :param Node target_node: The node to copy files to
      :param Folder parent: The parent of to attach the clone of src to, if applicable
      """
      assert not parent or not parent.is_file, 'Parent must be a folder'
  
      cloned = src.clone()
      cloned.parent = parent
      cloned.target = target_node
      cloned.name = name or cloned.name
      cloned.copied_from = src
  
      cloned.save()
  
      if src.is_file and src.versions.exists():
          fileversions = src.versions.select_related('region').order_by('-created')
          most_recent_fileversion = fileversions.first()
          if most_recent_fileversion.region and most_recent_fileversion.region != target_node.osfstorage_region:
              # add all original version except the most recent
              cloned.versions.add(*fileversions[1:])
              # create a new most recent version and update the region before adding
              new_fileversion = most_recent_fileversion.clone()
              new_fileversion.region = target_node.osfstorage_region
              new_fileversion.save()
              cloned.versions.add(new_fileversion)
          else:
              cloned.versions.add(*src.versions.all())
      if not src.is_file:
          for child in src.children:
              copy_files(child, target_node, parent=cloned)
  
      return cloned
  
subject: Check for a fileversion region before copying them to the source region