Python pathlib make directories if they don’t exist - Stack Overflow

PHOTO EMBED

Wed May 25 2022 06:27:22 GMT+0000 (Coordinated Universal Time)

Saved by [deleted user] #python

pathlib.Path('/tmp/sub1/sub2').mkdir(parents=True, exist_ok=True)
content_copyCOPY

https://stackoverflow.com/questions/50110800/python-pathlib-make-directories-if-they-don-t-exist