Answers for "make dir in os in python"

2

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))
Posted by: Guest on November-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language