summaryrefslogtreecommitdiffstats
path: root/Doc/library/os.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/os.rst')
-rw-r--r--Doc/library/os.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 5b2c2e0..2a1ea05 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -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: