[New-bugs-announce] [issue46366] Recursively propagate the mode, in os.makedirs

Daviddcc report at bugs.python.org
Thu Jan 13 05:07:54 EST 2022


New submission from Daviddcc <david.casier at aevoo.fr>:

os.makedirs do not propagate the requested rights, recursively creating directories with a 777 mode :

def makedirs(name, mode=0o777, exist_ok=False):
(...)
    if head and tail and not path.exists(head):
        try:
            makedirs(head, exist_ok=exist_ok) # <= HERE

----------
components: Library (Lib)
messages: 410480
nosy: dcasier
priority: normal
severity: normal
status: open
title: Recursively propagate the mode, in os.makedirs
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46366>
_______________________________________


More information about the New-bugs-announce mailing list