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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #Renaming #Directory #File
ADD COMMENT
Topic
Name
6+7 =