Skip to content

Instantly share code, notes, and snippets.

@error454
Created September 28, 2015 01:57
Show Gist options
  • Save error454/10bb0d1bc9ad86e61625 to your computer and use it in GitHub Desktop.
Save error454/10bb0d1bc9ad86e61625 to your computer and use it in GitHub Desktop.
Rename split archive with screwed up characters
import os
files = os.listdir('.')
files.sort()
num = 1
for file in files:
os.rename(file, "part" + str(num) + ".rar")
num = num + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment