Advertisement
here2share

# file_rename.py

Jan 6th, 2015
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. # file_rename.py
  2.  
  3. import os
  4.  
  5. os.rename("input.txt", "output.txt")
  6. os.rename("docs", "mydocs") ### includes every extensions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement