Cedar-lined closets are also reputed to repel moths — but their reputation probably derives from well-built cedar chests, which moths could not invade because they were built so tightly.
Why does my cedar chest stink? This serial number also doubles as their manufacturing date of the chest.