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.mkdir(path)
raises an OSError that the path already exists.
For example, I call:
os.mkdir(test)
This call results in OSError: [Errno 17] File exists: 'test'
even though I don't have a test directory or a file named test anywhere.
NOTE: the actual path name I use is not "test" but something more obscure that I'm sure is not named anywhere.
Help, please?