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
For python 2.7
from distutils.dir_util import mkpath mkpath(path)