Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (G…
…H-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
commit afa9e1f6a3b24b67ccdd390a9142b9fe9dafb69d
3 changes: 2 additions & 1 deletion Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,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