If considered necessary for the safety and accommodation of the public, the county commissioners may locate, construct and maintain sidewalks along county roads. The cost of the construction and maintenance of sidewalks shall be paid by the county.
16 Pa.C.S. § 16913