How to rename multiple files in a directory in Python?

Posted by Rohit Kumar | Updated on

Want to rename multiple files in a directory in Python? Use os.rename(src, dst) to rename or move a file or a directory.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers