Feature #1082
File writer option to pad track numbers with leading zeros
0%
Description
Hi,
I've just ripped a CD using audacious. I had the "prepend track numbers to file name" setting checked. Here's a listing of the output files:
```
$ ls -1 *.flac
1 Deftones - White Pony - Feiticeira.flac
10 Deftones - White Pony - Change (In The House Of Flies).flac
11 Deftones - White Pony - Pink Maggit.flac
2 Deftones - White Pony - Digital Bath.flac
3 Deftones - White Pony - Elite.flac
4 Deftones - White Pony - RX Queen.flac
5 Deftones - White Pony - Street Carp.flac
6 Deftones - White Pony - Teenager.flac
7 Deftones - White Pony - Knife Party.flac
8 Deftones - White Pony - Korea.flac
9 Deftones - White Pony - Passenger.flac
```
`ls` has sorted the filenames alphanumerically, which results in a 1, 10, 11, 2, ... ordering. It would be preferred if the sort order was preserved.
What the abcde ripper does to overcome this, is it pads the filenames with zeros as necessary: 01, 02, 03, ... 10, 11.
History
#1 Updated by John Lindgren over 3 years ago
- Category set to plugins/filewriter
- Subject changed from File writer plugin should pad track numbers with leading zeros to preserve sort order. to File writer option to pad track numbers with leading zeros
- Tracker changed from Bug to Feature