Created
May 13, 2015 17:15
-
-
Save jk0/df3fdfc661f15ae36fda to your computer and use it in GitHub Desktop.
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(".") | |
| for file in files: | |
| if file != "rename.py": | |
| title = file.split(".", 1)[0] | |
| os.rename(file, "%s.mkv" % title) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment