Commit 674d1cb
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 674d1cb
1 file changed
+12
-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 | | |
715 | 721 | | |
716 | 722 | | |
717 | 723 | | |
718 | 724 | | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
719 | 731 | | |
720 | 732 | | |
721 | 733 | | |
| |||
0 commit comments