[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.or

[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