Ray.Allen <ysj....@gmail.com> added the comment:

I want to explain "mkdir -p" as this:

We want to create a specified directory, if such a directory doesn't exist, 
then create it. If such a directory already exists, then we have already 
reached our goal, do nothing.

While we port this function to os.makedir(), there is a more specified 
information of the target directory, the "mode". If the target directory 
already exists but with a different mode, we need not create it, but we haven't 
reach our goal, yet. So we can raise a exception.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9299>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to