This is similar to PowerShell Flatten Directory Structure , but different.
I have a bunch of folders from ripping albums of the form artist/title/<disc number (an int)>
. This is good if there's more than one disc, but if not, you have artist/title/1/
, where it'd make more sense to move the contents of 1
up and delete the now empty 1
directory.
This would be only for the case where 1
is the only sub-dir; and note that there may be more multiple titles
under artist
.
Any suggestions on doing this in Powershell, or another way without going to Python?