The union representing city building and housing inspectors is coming out swinging, claiming the deadly apartment collapse in Brooklyn last month could have been prevented.

The city Department of Buildings is woefully understaffed, and was short 100 to 150 inspectors at the time of the Nov. 11 tragedy in Flatbush that killed eight people and injured nearly 20 others, the union claimed.

“The system failed, people died, and it didn’t have to happen,” Matthew Gugliotta, president of the Allied Building Inspectors Local 211, IUOE, told The Post.

“We just do not have enough inspectors. There is no one to send,” he said.

The DOB said the collapse of…

Read the full article at NYPOST.COM