N.Y. Correction Law § 879
This article shall not apply to any sheriff in the city of New York or to the commissioner of correction in the city of New York.