Is there really a chance that a file001.ext already exists for file1.ext?
Not really and I have seen many postings into the chapters of manga. The kind posters sequence things with ##_orginalfilename.ext
This brings in all tumbler renames into order. Tumbler like Yahoo shortcuts are unique filenames with no particular rhyme or reason.
A hashname or sorts.
The real saving grace is most manga chapters are less than 100 media files in total. There are the rare postings.
Because of the safe to expect starting point. Manga media names are either totally different based on the manga name and chapter. Or just numbers.
I have two programs to handle names. A pre-process program to handle just the name. Which we are discussing now.
And another which let's me view before renaming 001, 002, 003 ... for errors and rename.
All funny names found in a chapter directory get renamed by the second program. If it already 001 ... then I just exit that chapter.
The funny names are just that, too complex to predict and massage.
Nice to see some coding put out. Beyond expectation.
I will look at all of it.
I have always leaned towards process #2. I am not sure all the expanded "C" code would be faster than the blind code of process #1.
What I have now is only fast because of my fast computer. I know the results of removing dumb quick and dirty coding.
I have re-written that stuff only to catch a glimpse of the execution box flash on the screen. Making me think it did not happen.
I wish to do the same for renaming predicament. Based on the 2 people who would know the most about QB64 internals
giving some samples. i am still not sure to the best direction to take.
If you want to try out reading some of this stuff, "Many languages translated" it's on:
https://mangadex.org/ At this moment mangadex is free from AD's and begging. No pop up/unders/arrounds/new pages.
So much so they are targeted for DDOS by others wishing to profit from manga or make MD go away.
I who would not donate to any group or website, have done so for MD upkeep. They are just that good.
BTW, same moniker as here on MD.