Copy and move logic in case moving to root