Commit 4c59740
Ahmed Bilal
[IO] Fix rootcp --replace flag not working with recursive copy
The --replace flag was not being checked when copying regular objects
(non-tree, non-collection) in recursive mode. This caused objects to be
written with new cycles instead of replacing existing ones.
Added replaceOption check in the else block of copyRootObjectRecursive()
to delete existing objects before writing replacements.
Fixes #70521 parent 7b3872e commit 4c59740
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
712 | 718 | | |
713 | 719 | | |
714 | 720 | | |
| |||
0 commit comments