A man accused of violently attacking a 5-year-old girl as she walked down a Cow Hollow street will be sentenced to two years in prison, San Francisco District Attorney George Gascón said Tuesday.

It was April of this year when prosecutors say that 31-year-old Adras Kosdi approached a woman and her child at the corner of Union and Octavia Streets at 7:40 on a weekday morning.

As reported at the time, Kosdi allegedly "grabbed the girl by the neck, lifted her up and pushed her into a wall."

The girl's mom called 911 immediately, and Kosdi was arrested at the scene. The child, who did not know Kosdi, sustained bruises and a bloody scratch, from which she has recovered.

Kosdi, who told arresting officers that he was homeless and had a medical illness, was initially evaluated to determine whether he was mentally competent to participate in criminal proceedings.

Once he passed that evaluation, it was on to court, where he pleaded not guilty with a certain level of success: According to the Chron, even after the child testified against him, "the jury hung 10-2 in favor of guilt."

Prosecutors were ready to retry the child's alleged assailant, but the Chron reports that they managed to reach a plea deal with Kosdi, instead. On Tuesday, he pleaded guilty to felony child abuse, and will be sentenced to two years in state prison as of next month.

“There’s no excuse to assault anyone, ever, but assaulting a 5-year-old girl is cowardly and particularly egregious,” Gascón said in a statement to the Chron.

“I can’t imagine how traumatic this was for the little girl so I commend her for being so brave and having the courage to testify about such a frightening experience.”

Previously: 5-Year-Old Injured In Unprovoked Marina District Attack
Man Accused Of Attack On 5-Year-Old Might Not Face Charges After All