From: slateny <46876382+slateny@users.noreply.github.com> Date: Mon, 14 Mar 2022 19:57:10 +0000 (-0700) Subject: bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) X-Git-Tag: v3.11.0a7~248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=879fbd9472753149b627f32add3ddca90ac47ab7;p=thirdparty%2FPython%2Fcpython.git bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 6dffc4513365..05e0303614ed 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: