ironfede / openmcdf

Microsoft Compound File .net component - pure C# - netstandard 2.0
Mozilla Public License 2.0
297 stars 73 forks source link

moving Items missing #55

Open kucint opened 4 years ago

kucint commented 4 years ago

Is there any way to move (reparent) already existing Storage/Stream item to another Storage? if not, I suggest to add a method to CFItem: CFItem.MoveItem(CFItem itemToMove, CFStorage newParent);

This shall move a child item with all its underlying objects to another parent within the same CompoundFile. Currently, to reparent an item, the object and whole underlying object tree must be manually copied, finally the original tree must be deleted. This is extremely inefficient approach. Best!