create nested folder in python code example
Example: python create nested directory
from pathlib import Path
Path("/my/directory").mkdir(parents=True, exist_ok=True) #python 3.5 above
from pathlib import Path
Path("/my/directory").mkdir(parents=True, exist_ok=True) #python 3.5 above