You can also use Permethrin to treat the maggot-infested floor. D flies and mats from fruit but no bugs but on the wood floor. They are called meal moths and the worms are the larvae.
The eggs will will be hidden from the sun and th extra moisture assures they will not dry out.
You can also use Permethrin to treat the maggot-infested floor. The other white worms in that size range that can be found in kitchens are fly maggots but those do not have legs. They are almost hairless with 3 pairs of short legs at the front end of the body and a brown head. House flies are common indoor pests that lay eggs indoors and outdoors.