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
Maybe there's a hidden folder named test in that directory. Manually check if it exists.
ls -a
Create the file only if it doesn't exist.
if not os.path.exists(test): os.makedirs(test)