Upon application of a defendant against whom a misdemeanor complaint is pending in a local criminal court, and who, either at the time of his arraignment thereon or subsequent thereto, has been committed to the custody of the sheriff pending disposition of the action, and who has been confined in such custody for a period of more than five days, not including Sunday, without any information having been filed in replacement of such misdemeanor complaint, the criminal court must release the defendant on his own recognizance unless:
N.Y. Crim. Proc. Law ยง 170.70