]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-86533: Restore os.makedirs() ability to apply *mode* recursively (GH-150011)
authornessita <124304+nessita@users.noreply.github.com>
Mon, 18 May 2026 23:00:27 +0000 (20:00 -0300)
committerGitHub <noreply@github.com>
Mon, 18 May 2026 23:00:27 +0000 (23:00 +0000)
commit9770e32ce07110f0c8c7a381604ec9a490028eed
tree9a70c7bf8fa959744e83aa3dc2d3b012962a6d0a
parent9eb50a40b4186d665aa98c8dbea7cf60fb2aacca
gh-86533: Restore os.makedirs() ability to apply *mode* recursively (GH-150011)

bpo-42367: Restore os.makedirs() and pathlib.mkdir() ability to apply *mode* recursively via a new parent_mode= keyword argument.

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Doc/library/os.rst
Doc/library/pathlib.rst
Doc/whatsnew/3.15.rst
Lib/os.py
Lib/pathlib/__init__.py
Lib/test/test_os/test_os.py
Lib/test/test_pathlib/test_pathlib.py
Misc/NEWS.d/next/Library/2025-08-30-07-44-30.gh-issue-86533.pathlib.rst [new file with mode: 0644]