The odor of a dirty diaper will just not go away. Whether you have a sealed garbage can or a diaper genie, once you open the lid — the scent is released again. Flies like anything that they find to be delightfully stinky, and dirty diapers are very inviting to them.