summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorslateny <46876382+slateny@users.noreply.github.com>2022-03-14 19:57:10 (GMT)
committerGitHub <noreply@github.com>2022-03-14 19:57:10 (GMT)
commit879fbd9472753149b627f32add3ddca90ac47ab7 (patch)
treeb0466897ec8e982e4204a80212c35d10e23efeeb /Doc
parent3dcc396219d8978e8e9b2c8821c286f87f1f92b1 (diff)
downloadcpython-879fbd9472753149b627f32add3ddca90ac47ab7.zip
cpython-879fbd9472753149b627f32add3ddca90ac47ab7.tar.gz
cpython-879fbd9472753149b627f32add3ddca90ac47ab7.tar.bz2
bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 6dffc45..05e0303 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2050,7 +2050,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: