fruit flies are mainly attracted to moist, fermenting fruits and vegetables. however, they are also drawn to things such as drains, garbage disposals, empty bottles and cans, trash bags, cleaning rags and mops. essentially, they are drawn to food waste and moist environments.