We had this summer and tried quite a few fruit flies in various ways, this "catch" and tested various traps (sticky tape, other liquid scent traps) and this was by far the most effective trap of all. Within a few days the entire clan was (several dozen) captured and converted into fruit flies beyond (I'm sorry, little fruit flies).
The containers are warschbar and it is sufficient attractant for some fishing orgies going for next year so we are well prepared.