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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to