Skip to content

Instantly share code, notes, and snippets.

@ItsCosmas
Created November 29, 2019 19:02
Show Gist options
  • Save ItsCosmas/3af22dc8d3eb6714a500379d0e61879b to your computer and use it in GitHub Desktop.
Save ItsCosmas/3af22dc8d3eb6714a500379d0e61879b to your computer and use it in GitHub Desktop.
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