Skip to content

Commit 879fbd9

Browse files
authored
bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548)
1 parent 3dcc396 commit 879fbd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/os.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -2050,7 +2050,8 @@ features:
20502050

20512051
Create a directory named *path* with numeric mode *mode*.
20522052

2053-
If the directory already exists, :exc:`FileExistsError` is raised.
2053+
If the directory already exists, :exc:`FileExistsError` is raised. If a parent
2054+
directory in the path does not exist, :exc:`FileNotFoundError` is raised.
20542055

20552056
.. _mkdir_modebits:
20562057

0 commit comments

Comments
 (0)