Any person, desirous of perpetuating the testimony of any witness concerning any matter which is or may be the subject of litigation, as well before as after litigation is commenced, may present a petition in writing to any justice of the supreme or superior or family court, or to any justice of a district court, setting forth the reasons of his or her application, the name of the witness or witnesses, the subject matter of the controversy, and the names of all persons known to be interested therein, and praying that the deposition of the witness or witnesses may be taken; and thereupon if the justice be satisfied of the reasonableness of the petition, he or she shall designate some notary public or standing master in chancery to take the deposition, to whom the petition, with the order of designation thereon, shall be sent.
R.I. Gen. Laws § 9-18-12