summaryrefslogtreecommitdiff
path: root/Doc/library/pathlib.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/pathlib.rst')
-rw-r--r--Doc/library/pathlib.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/pathlib.rst b/Doc/library/pathlib.rst
index a8c1dc9e80..7148667486 100644
--- a/Doc/library/pathlib.rst
+++ b/Doc/library/pathlib.rst
@@ -768,7 +768,10 @@ call fails (for example because the path doesn't exist):
and access flags. If the path already exists, :exc:`OSError` is raised.
If *parents* is true, any missing parents of this path are created
- as needed. If *parents* is false (the default), a missing parent raises
+ as needed; they are created with the default permissions without taking
+ *mode* into account (mimicking the POSIX ``mkdir -p`` command).
+
+ If *parents* is false (the default), a missing parent raises
:exc:`OSError`.