Queenie was allegedly locked in a room by a spiteful ex-husband, Guardians of Rescue said on its Facebook page. The dog was then discovered by the ex-wife when she came home to get a few things, the group said.

“She laid alone just dying,” said Robert Misseri with Guardians of Rescue. “Literally, her body was just giving away and she’s fighting for her life now.”

Suffolk County SPCA Det. Paul Llobell said Queenie was rescued just in time.

“This dog is lucky,” he said. “Indications from the doctor is that the dog was near death. Maybe a day or two before the dog would expire.”

Caporaso said Queenie has lost about half her body weight, but is now receiving food, water and much-needed care. A video posted to Guardians of Rescue’s Facebook page on Sunday shows Queenie standing up and eating food.

“She couldn’t even walk when she came in,” Caporaso said. “She’s already made a remarkable recovery.”