FileExistsError is raised by mkdir when dir exists

Reported by Saul Spatz on docs@
This commit is contained in:
Zachary Ware 2016-04-25 09:27:27 -05:00
parent 8724a2adf2
commit d3304e3e20
1 changed files with 2 additions and 2 deletions

View File

@ -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>`.