python create nested folders 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