Skip to content

Commit

Permalink
bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (p…
Browse files Browse the repository at this point in the history
…ythonGH-31548)

(cherry picked from commit 879fbd9)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
  • Loading branch information
slateny authored and miss-islington committed Mar 14, 2022
1 parent c682840 commit 0710edb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2041,7 +2041,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:

Expand Down

0 comments on commit 0710edb

Please sign in to comment.