summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-06-12 06:28:58 (GMT)
committerGeorg Brandl <georg@python.org>2010-06-12 06:28:58 (GMT)
commitab776cef9d660e05cecd2e5183635c749af92a6e (patch)
treec9ac4e6b4ed8777aba9d42e3b0b7041c5921633e /Doc
parentb20ada08bd140fb234c281c6397f86fab313577f (diff)
downloadcpython-ab776cef9d660e05cecd2e5183635c749af92a6e.zip
cpython-ab776cef9d660e05cecd2e5183635c749af92a6e.tar.gz
cpython-ab776cef9d660e05cecd2e5183635c749af92a6e.tar.bz2
Document that an existing directory raises in mkdir().
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 64e04be..959c18c 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -1175,7 +1175,8 @@ Files and Directories
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
- 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
:mod:`tempfile` module's :func:`tempfile.mkdtemp` function.