https://github.com/Pythondeveloper6/Python-Automation-Scripts/blame/4a50cffc5f43e85a4730b8b52bf65f7b22aa04bb/Rename-Images-In-Folder.py#L2

I made a lot of manipulation with code, but nothing changed. I've tried make editing, reordering, even upgrade os library and so on. On Linux Ubuntu 24.04.03 after running code order of files skip from 1 to 5 file's numbers in chain.