If the judgment be rendered upon the right of the person so alleged to be entitled and such judgment be in favor of such person, he shall be entitled, after taking the oath of office and executing such official bond as may be required by law, to take upon himself the execution of the office, and he shall immediately thereafter demand of the defendant in the action all the books and papers in his custody or within his power belonging to the office from which he shall have been excluded.
S.C. Code § 15-63-130