Tiny Java tool to fix incorrectly ordered files.
Go to file
Beatrice f238753ffa
All checks were successful
continuous-integration/drone/push Build is passing
Update 'README.md'
2022-06-01 00:54:14 +02:00
src/main Rename main package 2022-06-01 00:50:33 +02:00
.drone.yml Add DroneCI support 2022-06-01 00:41:25 +02:00
.gitignore Add project files 2022-06-01 00:38:54 +02:00
pom.xml Rename main package 2022-06-01 00:50:33 +02:00
README.md Update 'README.md' 2022-06-01 00:54:14 +02:00

Info

This simple and inefficient tool was made to rename files in a folder that were numbered incorrectly. The files had the correct number in their name, but since most OSes use alphabetical order, it was not like this:

1, 2, 3, 4, 5, 6, 7, 8, 9, 10...

but like this:

1, 10, 11, 12-19, 100, 101, 102... 2, 20, 21-29, 200, 201, 202...

This is easily fixed by adding zeros before the actual number, up to the number of needed digits:

001, 002, 003, 004... 010, 011... 020, 021... 100, 101...

The code only supports up to 3 digits but can easily be updated to handle more.