List of photoshop layers into individual folders

I have a LOT of photoshop files to make. I'm using a script to pull multiple images into one PSD. I then need to place each image layer into an individual folder. Are there any scripts out there or even something build into photoshop to do this?