duplicate_directory
Recursively copy an Unreal content folder to a new path, remap references among copied assets to their copies, and keep external links shared to isolate a subtree.
Instructions
Recursively copy a content folder to a new path, REMAPPING references among the copied assets so the new subtree points at its own copies (true graph isolation) while references to assets OUTSIDE the set stay shared with the originals (the "copy what you modify, share the rest" policy). Unlike EditorAssetLibrary.DuplicateDirectory / duplicate_asset (which copy without remapping, so copies keep pointing at the originals), this duplicates every asset then runs a second reference-replacement pass with the full old->new map, and saves the copies. Intended for material/instance/texture/data-asset libraries; Blueprints may need a recompile and maps (UWorld) are not handled specially.
Returns: { source_path: string, dest_path: string, source_asset_count: int, duplicated_count: int, remapped: bool, new_asset_paths: [string] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest_path | Yes | Destination content folder, e.g. /Game/MyGame/Environment/AutoLandscape | |
| source_path | Yes | Source content folder, e.g. /Game/VendorPack/Environment/AutoLandscape |