Kaydet (Commit) d3304e3e authored tarafından Zachary Ware's avatar Zachary Ware

FileExistsError is raised by mkdir when dir exists

Reported by Saul Spatz on docs@
üst 8724a2ad
...@@ -1624,8 +1624,8 @@ features: ...@@ -1624,8 +1624,8 @@ features:
Create a directory named *path* with numeric mode *mode*. Create a directory named *path* with numeric mode *mode*.
On some systems, *mode* is ignored. Where it is used, the current umask 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` value is first masked out. If the directory already exists,
is raised. :exc:`FileExistsError` is raised.
This function can also support :ref:`paths relative to directory descriptors This function can also support :ref:`paths relative to directory descriptors
<dir_fd>`. <dir_fd>`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment