From: Zachary Ware Date: Mon, 25 Apr 2016 14:27:27 +0000 (-0500) Subject: FileExistsError is raised by mkdir when dir exists X-Git-Tag: v3.6.0a1~122^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3304e3e20651665bdafd29ffbdf64f50ac753e6;p=thirdparty%2FPython%2Fcpython.git FileExistsError is raised by mkdir when dir exists Reported by Saul Spatz on docs@ --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index f2cfdb4cbe2b..0ff68574692b 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1624,8 +1624,8 @@ features: Create a directory named *path* with numeric mode *mode*. On some systems, *mode* is ignored. Where it is used, the current umask - value is first masked out. If the directory already exists, :exc:`OSError` - is raised. + value is first masked out. If the directory already exists, + :exc:`FileExistsError` is raised. This function can also support :ref:`paths relative to directory descriptors `.