from osf.models.base import generate_object_id


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:])
            # setting the id to None and calling save generates a new object
            most_recent_fileversion.id = None
            most_recent_fileversion._id = generate_object_id()
            most_recent_fileversion.region = target_node.osfstorage_region
            most_recent_fileversion.save()
            cloned.versions.add(most_recent_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

@@ -1,52 +1,4 @@
-from osf.models.base import generate_object_id%0A%0A
 %0Adef
@@ -939,70 +939,76 @@
   # 
-setting the id to N
+create a new most recent versi
 on
-e
  and 
-calling save generates a new object
+update the region before adding
 %0A   
@@ -1012,35 +1012,27 @@
             
-most_recent
+new
 _fileversion
@@ -1035,30 +1035,10 @@
 sion
-.id = None%0A          
  
+=
  mos
@@ -1062,32 +1062,13 @@
 ion.
-_id = generate_object_id
+clone
 ()%0A 
@@ -1074,35 +1074,27 @@
             
-most_recent
+new
 _fileversion
@@ -1141,35 +1141,27 @@
             
-most_recent
+new
 _fileversion
@@ -1200,27 +1200,19 @@
 ons.add(
-most_recent
+new
 _filever

Use clone() method from BaseModel to copy most recent fileversion