mirror of
https://github.com/python/cpython.git
synced 2025-08-19 16:20:59 +00:00
Document that an existing directory raises in mkdir().
This commit is contained in:
parent
b20ada08bd
commit
ab776cef9d
1 changed files with 2 additions and 1 deletions
|
@ -1175,7 +1175,8 @@ Files and Directories
|
||||||
|
|
||||||
Create a directory named *path* with numeric mode *mode*. The default *mode* is
|
Create a directory named *path* with numeric mode *mode*. The default *mode* is
|
||||||
``0777`` (octal). On some systems, *mode* is ignored. Where it is used, the
|
``0777`` (octal). On some systems, *mode* is ignored. Where it is used, the
|
||||||
current umask value is first masked out.
|
current umask value is first masked out. If the directory already exists,
|
||||||
|
:exc:`OSError` is raised.
|
||||||
|
|
||||||
It is also possible to create temporary directories; see the
|
It is also possible to create temporary directories; see the
|
||||||
:mod:`tempfile` module's :func:`tempfile.mkdtemp` function.
|
:mod:`tempfile` module's :func:`tempfile.mkdtemp` function.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue