Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import os
i = 0
for file in os.listdir("."):
dst = str(i) + ".jpeg"
src = file
dst = dst
os.rename(src,dst)
i +=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment