I am looking for help with a Python program/script to remove all folders but keep all files in a folder.
I have a big folder with 100 folders each one containing another folder with an mp3 file inside and I would extract all the mp3s in one big folder.
My guess would be for each folder... if it has another folder inside (and it has), delete both folders so that only the endfile (mp3) remains in the big home folder.
Could anyone help me without losing the files?