8000 [3.10] bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoun… · python/cpython@efa7250 · GitHub
[go: up one dir, main page]

Skip to content

Commit efa7250

Browse files
[3.10] bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) (GH-31877)
(cherry picked from commit 879fbd9) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com> Automerge-Triggered-By: GH:iritkatriel
1 parent c682840 commit efa7250

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/os.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2041,7 +2041,8 @@ features:
20412041

20422042
Create a directory named *path* with numeric mode *mode*.
20432043

2044-
If the directory already exists, :exc:`FileExistsError` is raised.
2044+
If the directory already exists, :exc:`FileExistsError` is raised. If a parent
2045+
directory in the path does not exist, :exc:`FileNotFoundError` is raised.
20452046

20462047
.. _mkdir_modebits:
20472048

0 commit comments

Comments
 (0)
0