mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[3.10] bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) (GH-31877)
(cherry picked from commit 879fbd9472)
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
This commit is contained in:
parent
c682840834
commit
efa7250159
1 changed files with 2 additions and 1 deletions
|
|
@ -2041,7 +2041,8 @@ features:
|
|||
|
||||
Create a directory named *path* with numeric mode *mode*.
|
||||
|
||||
If the directory already exists, :exc:`FileExistsError` is raised.
|
||||
If the directory already exists, :exc:`FileExistsError` is raised. If a parent
|
||||
directory in the path does not exist, :exc:`FileNotFoundError` is raised.
|
||||
|
||||
.. _mkdir_modebits:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue