Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create directory in python

import os
directory = "Krishna"
path_dir = "C:/Users/../Desktop/current_dir/"
if not os.path.exists(directory):
	os.mkdir(os.path.join(path_dir, directory))
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #create #directory #python
ADD COMMENT
Topic
Name
7+1 =