Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python create directory

import os

if not os.path.exists('parentdirectory/mydirectory'):
    os.makedirs('parentdirectory/mydirectory')
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #python #create #directory
ADD COMMENT
Topic
Name
1+3 =