New York State Labor Law §241(6)
 
§ 241.  Construction, excavation and demolition work

   All contractors and owners and their agents, except owners of one and two-family dwellings who contract for but do not direct or control the work, when constructing or demolishing buildings or doing any excavating in connection therewith, shall comply with the following requirements:
 
... 
 
6. All areas in which construction, excavation or demolition work is being performed shall be so constructed, shored, equipped, guarded, arranged, operated and conducted as to provide reasonable and adequate protection and safety to the persons employed therein or lawfully frequenting such places. The commissioner may make rules to carry into effect the provisions of this subdivision, and the owners and contractors and their agents for such work, except owners of one and two-family dwellings who contract for but do not direct or control the work, shall comply therewith.