Skip to content

Commit b4fd91b

Browse files
[3.9] bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) (GH-31878)
(cherry picked from commit 879fbd9) Co-authored-by: slateny <[email protected]> Automerge-Triggered-By: GH:iritkatriel
1 parent 649cc9d commit b4fd91b

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
@@ -1909,7 +1909,8 @@ features:
19091909

19101910
Create a directory named *path* with numeric mode *mode*.
19111911

1912-
If the directory already exists, :exc:`FileExistsError` is raised.
1912+
If the directory already exists, :exc:`FileExistsError` is raised. If a parent
1913+
directory in the path does not exist, :exc:`FileNotFoundError` is raised.
19131914

19141915
.. _mkdir_modebits:
19151916

0 commit comments

Comments
 (0)