Whenever 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 said sidewalks shall be paid by the county.
16 P.S. § 2713