Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Renaming a Directory or a File

>>> os.listdir()
['test']

>>> os.rename('test','new_one')

>>> os.listdir()
['new_one']
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #Python #Renaming #Directory #File
ADD COMMENT
Topic
Name
7+9 =