mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
c274fd22ed
commit
0048c98fef
4 changed files with 20 additions and 4 deletions
|
@ -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`.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue