Whenever it shall be necessary for a party to any action or proceeding to give a bond or an undertaking with surety or sureties he may, in lieu thereof, deposit with the officer or into the court, as the case may require, money to the amount for which the bond or undertaking is to be given. The court in which such action or proceeding is pending may direct what disposition shall be made of such money, pending the action or proceeding. In any case in which, by this section, the money is to be deposited with an officer, a judge of the court, in term or at chambers, upon the application of either party, may, before such deposit is made, order it to be deposited in court instead of with such officer and a deposit made pursuant to such order shall be of the same effect as if made with such officer.
S.C. Code § 15-1-250