diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2016-04-25 09:27:27 -0500 |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2016-04-25 09:27:27 -0500 |
commit | d3304e3e20651665bdafd29ffbdf64f50ac753e6 (patch) | |
tree | 60f0d8739e5fe05d61a655e3a1fc84c8916ad94d | |
parent | 8724a2adf2be6a89df20c3cebcbcc641d2a52d42 (diff) | |
download | cpython-git-d3304e3e20651665bdafd29ffbdf64f50ac753e6.tar.gz |
FileExistsError is raised by mkdir when dir exists
Reported by Saul Spatz on docs@
-rw-r--r-- | Doc/library/os.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index f2cfdb4cbe..0ff6857469 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 <dir_fd>`. |