From afa9e1f6a3b24b67ccdd390a9142b9fe9dafb69d Mon Sep 17 00:00:00 2001 From: slateny <46876382+slateny@users.noreply.github.com> Date: Mon, 14 Mar 2022 12:57:10 -0700 Subject: [PATCH] bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) (cherry picked from commit 879fbd9472753149b627f32add3ddca90ac47ab7) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com> --- Doc/library/os.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/os.rst b/Doc/library/os.rst index d70f403e8cf1f3..2f7b37019e4a43 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -1909,7 +1909,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: