I am calling os.mkdir to create a folder with a certain set of generated data. However, even though the path I specified has not been created, the os.mkdi
os.mkdir
os.mkdi
Just check if the path exist. if not create it
import os if not os.path.exists(test): os.makedirs(test)