Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # rename_folder.py
- import os
- new_folder = u"/Users/yourusername/Desktop/test"
- os.mkdir(new_folder)
- new_folder2 = u"/Users/yourusername/Desktop/test2"
- os.rename(new_folder, new_folder2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement