Advertisement
here2share

# rename_folder.py

May 9th, 2015
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. # rename_folder.py
  2.  
  3. import os
  4. new_folder = u"/Users/yourusername/Desktop/test"
  5. os.mkdir(new_folder)
  6. new_folder2 = u"/Users/yourusername/Desktop/test2"
  7. os.rename(new_folder, new_folder2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement