She’s filthy rich.

The homeless woman who has been spitting on Upper East Side residents was carrying more than $19,133 in cash on her when she was arrested Thursday for allegedly attacking a child, sources said.

Hilda Barrion — nicknamed “The Spitting Lady of 77th Street” — was picked up around 7 a.m. on East 78th Street and told officers she had amassed her fortune by collecting bottles and cans, the sources said.

Besides the cash pile, Barrion, 65, was hauling around a load of random possessions that included a spaghetti strainer and sewing needles.

Her fortune was broken down into 182 $100 bills, 11 $50s, 12 $20s, eight $10s, eight $5s and 23 $1s, the sources said.

At 5 cents a pop, it would take the Argentina native collecting 382,660 bottles and cans to arrive at $19,133.

Known as “Susan” by local residents, Barrion was charged with stalking and endangering the welfare of a child. The charges stem from three alleged spitting incidents involving a 7-year-old — one each in June and December of last year and one in January of this year.

Upper East Siders told The Post that Barrion has been spitting at them for years.

An online petition was started demanding Mayor Bill de Blasio and other politicians take action.

“For years, there has been a woman who has been wandering the streets of the Upper East Side who screams, yells and spits on people,” reads the petition on Change.org.

“She mainly spits on children, while also hissing and yelling at them.”

Barrion’s nephew Gabriel Uno, 44, was arrested with her. He was charged with menacing, reckless endangerment and criminal possession of a weapon for a separate March 18 incident in which he allegedly threw a table at a person, sources said.

Residents rejoiced at the news of Barrion’s arrest.

“She deserves it,” said Margie Kaiser, a manicurist at Dea Salon on East 78th Street. “She spits on everybody. She doesn’t have good aim but she spits.”

Additional reporting by Priscilla DeGregory