When a complaint is filed with a magistrate of the commission of a felony originally triable in the superior court of another county of the state than that in which the magistrate sits, but showing that the defendant is in the county where the complaint is filed, the same proceedings must be had as prescribed in this chapter, except that the warrant must require the defendant to be taken before the nearest or most accessible magistrate of the county in which the offense is triable, and the complaint must be delivered by the magistrate to the officer to whom the
warrant is delivered.