Created
September 28, 2015 01:57
-
-
Save error454/10bb0d1bc9ad86e61625 to your computer and use it in GitHub Desktop.
Rename split archive with screwed up characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode 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