Python Doc Error: os.makedirs
Dr. Who
google at spiceaid.com
Wed Oct 19 12:26:16 EDT 2005
Xah Lee wrote:
> i think the function shouldn't complain if dir already exists. How is a
> programer to distinguish if the dir already exists, or if there's a
> problem creating the dir?
Of course it should thrown an exception because it was unable to do
what it was asked: create a directory. The fact that the directory
already exists is irrelevant to the function...it still failed to
create the directory.
And I have had situations where attempting to create a directory that
already exists was an error condition.
Jeff
More information about the Python-list
mailing list