Unflatten a folder
Posted: 21 Aug 2018 14:40
After a lot of cleaning and de-duplication of my music folders, I now have a flat folder with all my duplicate files. I am not yet ready to delete these (50k+ files) just in case I need to fill an album which I have inadvertently deleted a file or two. Dealing with a folder with 50k+ files is however a pain in the neck, even with XYplorer and 32GB RAM.
I would like to unflatten the folder into an alphabetical structure, using the first element in the name as a start i.e.
1 song for you.mp3
My first song.mp3
The second Song.mp3
Free songs in a row.mp3
Should end up as
Base folder:\#\1 song for you.mp3
Base folder:\F\Free songs in a row.mp3
Base folder:\M\My first song.mp3
Base folder:\T\The second Song.mp3
Eventually I will end up with a structure that stretches
Base folder:\# (for anything not alphabetical)
Base folder:\A\files.xyz
Base folder:\B\files.xyz
Base folder:\C\files.xyz
.
.
.
Base folder:\Z\files.xyz
I would like to unflatten the folder into an alphabetical structure, using the first element in the name as a start i.e.
1 song for you.mp3
My first song.mp3
The second Song.mp3
Free songs in a row.mp3
Should end up as
Base folder:\#\1 song for you.mp3
Base folder:\F\Free songs in a row.mp3
Base folder:\M\My first song.mp3
Base folder:\T\The second Song.mp3
Eventually I will end up with a structure that stretches
Base folder:\# (for anything not alphabetical)
Base folder:\A\files.xyz
Base folder:\B\files.xyz
Base folder:\C\files.xyz
.
.
.
Base folder:\Z\files.xyz