I am new to any kind of scripting. I wrote a python script to add numbers to the end of filenames, and pad zeros to the numbers. It will work, but it does not keep the numbers in sequential order. This is the script. Any ideas would be appreciated.
for count, filename in enumerate(os.listdir(path)):
dest = filename + str(count).zfill(3)
source = path + filename
dest = path + dest
# rename() function will # rename all the files os.rename(source, dest)
if __name__ == '__main__':
Calling main() function
Here are the original file names.
Here is what I get after I run the script.