Tiny Java tool to fix incorrectly ordered files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bea f238753ffa
continuous-integration/drone/push Build is passing Details
Update 'README.md'
6 months ago
src/main Rename main package 6 months ago
.drone.yml Add DroneCI support 6 months ago
.gitignore Add project files 6 months ago
README.md Update 'README.md' 6 months ago
pom.xml Rename main package 6 months ago

README.md

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.