os.mkdir()
Holger Jannsen
holger at phoenix-edv.netzservice.de
Wed Jun 9 08:27:58 EDT 1999
Hello again,
I couldn't find a resolution in helpfiles, so please
give a hint to my (easy to solve!?) question:
I'd like to create directories under WinNT. There is
already a file with the same name as the directory I want
to create.
Look:
>>>os.mkdir("c:\\blabla")
OSError: [Errno 17] File exists: 'C:\\blabla'
or
>>>os.makedirs("c:\blabla\nana\gugu")
produces
OSError: [Errno 2] No such file or directory: 'c:\blabla\nana'
Don't know if python doing the same under linux, but I need
to solve the problem for every OS!
I think, there must be an easy solution?!
Ciao,
Holger
More information about the Python-list
mailing list