Created
August 11, 2017 10:46
-
-
Save TimSC/8aa012bd450e5151602fb24b158d3e51 to your computer and use it in GitHub Desktop.
Rename files and folders by replacing substring
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 | |
if __name__ == "__main__": | |
fiList = list(os.listdir(".")) | |
for fina in fiList: | |
print fina | |
os.rename(fina, fina.replace("3.0", "3.3")) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment