Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pathlib create directory if not exists

pathlib.Path('/tmp/sub1/sub2').mkdir(parents=True, exist_ok=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #pathlib #create #directory #exists
ADD COMMENT
Topic
Name
9+8 =