can rotten potatoes cause flies?
Rotting or ripened tomatoes, melons, potatoes, bananas, apples and similar products are commonly infested by fruit flies. Although these flies thrive for a mere ten days, this period is good enough for infestation and breeding. Their food source is also their breeding ground.