[issue46366] Recursively propagate the mode, in os.makedirs

2022-01-13 Thread Daviddcc


Daviddcc  added the comment:

This is the correct approach, with an umask configured

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue46366>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46366] Recursively propagate the mode, in os.makedirs

2022-01-13 Thread Daviddcc


New submission from Daviddcc :

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 
<https://bugs.python.org/issue46366>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com