I found a script for flattening folders
It just takes all the files in whatever folder you drop onto it, goes through all the subfolders, and dumps all the files into the parent folder, then deletes the now empty subfolders. It also adds a number to duplicate files.
It’s definitely not the cleanest, but it just saved me a ton of time in setting up my sample library the way I want it, rather than nice organized subfolders like some people.
That is all, it’s wonderful. Not sure if I can post code here, but I will send it to anyone who wants it.