DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+9 =
Submit