Issue #19921: When Path.mkdir() is called with parents=True, any missing parent is created with the default permissions, ignoring the mode argument (mimicking the POSIX "mkdir -p" command).

Patch by Serhiy.
This commit is contained in:
Antoine Pitrou 2013-12-16 20:22:37 +01:00
parent c274fd22ed
commit 0048c98fef
4 changed files with 20 additions and 4 deletions

View file

@ -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`.