i need help to create a code using python to rename specific folder inside many subfolder in side the main folder
Example:
theirs folder name fromDrawing inside many folder subfolder and need to rename it to Drawing
CodePudding user response:
Try using sys/os? I'm not good with sys and os, so I can't give you an example. (I have just never needed it really.)
CodePudding user response:
To rename folder using python, you can use the os.rename functionality..
Example:
import os,sys
os.rename("path_to_initial_folder","same_path_with_changed_name")
