Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import os
import shutil
for filename in os.listdir("."):
if filename.startswith("r."):
#os.rename(filename, filename[7:])
exp = filename.split(".")
exp[1] = str(int(exp[1])+20)
newfilename = ".".join(exp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.