]> granicus.if.org Git - python/commitdiff
Document that an existing directory raises in mkdir().
authorGeorg Brandl <georg@python.org>
Sat, 12 Jun 2010 06:28:58 +0000 (06:28 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 12 Jun 2010 06:28:58 +0000 (06:28 +0000)
Doc/library/os.rst

index 64e04bed781ce766d398a01b3dbf941106da0aa2..959c18cd8113eab537966fb4f4f27f68bf3bae7a 100644 (file)
@@ -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.