]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548)
authorslateny <46876382+slateny@users.noreply.github.com>
Mon, 14 Mar 2022 19:57:10 +0000 (12:57 -0700)
committerGitHub <noreply@github.com>
Mon, 14 Mar 2022 19:57:10 +0000 (19:57 +0000)
Doc/library/os.rst

index 6dffc4513365e35149fc40a6ba6bb861d1877c27..05e0303614ed1e96893e8d46eaae9dd7002280a9 100644 (file)
@@ -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: