This commit is contained in:
Benjamin Peterson 2014-04-01 19:18:48 -04:00
commit 9dc203fff9
4 changed files with 20 additions and 34 deletions

View file

@ -1619,11 +1619,8 @@ features:
The default *mode* is ``0o777`` (octal). On some systems, *mode* is
ignored. Where it is used, the current umask value is first masked out.
If *exist_ok* is ``False`` (the default), an :exc:`OSError` is raised if
the target directory already exists. If *exist_ok* is ``True`` an
:exc:`OSError` is still raised if the umask-masked *mode* is different from
the existing mode, on systems where the mode is used. :exc:`OSError` will
also be raised if the directory creation fails.
If *exist_ok* is ``False`` (the default), an :exc:`OSError` is raised if the
target directory already exists.
.. note::
@ -1635,6 +1632,13 @@ features:
.. versionadded:: 3.2
The *exist_ok* parameter.
.. versionchanged:: 3.3.6
Before Python 3.3.6, if *exist_ok* was ``True`` and the directory existed,
:func:`makedirs` would still raise an error if *mode* did not match the
mode of the existing directory. Since this behavior was impossible to
implement safely, it was removed in Python 3.3.6. See :issue:`21082`.
.. function:: mkfifo(path, mode=0o666, *, dir_fd=None)