I have 400 files in a directory (with .png extensions). They start with the name 005.png and go up to 395.png.
I want to rename them using os.rename:
os.rename(006.png,005.png) In other words, I want to shift all the numbers down one, renaming the file 005.png to 004.png and renaming 395.png to 394.png, and so on.
I don't want to do this manually, because it would take too long:
os.rename(005.png,004.png) os.rename(006.png,005.png) ... How can I do this simply? I am using the s60 2nd edition FP3.
Thanks in advance!