S.C. Code Ann. § 24-5-170
When any person shall be apprehended or in confinement according to law in any county in this State wherein the jail may be destroyed by fire or other accident, he shall be committed to the jail nearest the one destroyed for safekeeping. The several jailers in this State, keepers of the jails nearest to those jails that may be destroyed as aforesaid, shall receive and safely keep such person.