A San Francisco man has been charged with felony animal cruelty after a four-month-old Chihuahua puppy was found alive but badly injured in a dumpster.

Animal Care and Control says that the puppy, who's been named Rocky, lay for four days in the dumpster without food or water after being tossed three stories down a garbage chute at an apartment building at Otis and McCoppin streets. The puppy was found making mewling noises on February 25, and was treated for injuries including a broken rear leg, which ultimately had to be amputated, as the Examiner reports.

NBC Bay Area reports that Rocky, who is female, was discovered by a janitor in the building.

59-year-old Ronald Louis Jones was arraigned Friday on the animal cruelty charge, and a misdemeanor charge of abandonment of an animal.

"The level of callousness alleged is stunningly atrocious,” said District Attorney George Gascón in a statement. "A person who would cause this degree of harm to a defenseless dog should not be allowed to have any animal in their care."

Officer Edith from Animal Care and Control reports that Rocky has now been adopted by one of the officers in the department.

The adopting officer, Rebecca Fenson, tells NBC, "I know Rocky’s story, I know what she went through, and it’s great to be able to provide a loving home that she deserves."