[issue19930] os.makedirs('dir1/dir2', 0) always fails

2020-11-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: This API change was not strictly a bugfix, it removed a feature existing code was relying on. https://bugs.python.org/issue42367 opened to reconcile the two. -- nosy: +gregory.p.smith ___ Python tracker

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e304e33c16e060932d1e2cc8a030d42b02b429b5 by Serhiy Storchaka in branch 'master': bpo-19930: The mode argument of os.makedirs() no longer affects the file (#799) https://github.com/python/cpython/commit/e304e33c16e060932d1e2cc8a030d42b02b429b5

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +702 ___ Python tracker ___ ___

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The obvious but more complicated alternative would be to call chmod() on all > the new directories in a second step. This is dangerous, because if you create read-only or unlistable directory, you couldn't remove it without changing the permission of

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2016-06-10 Thread Martin Panter
Martin Panter added the comment: I’ve never considered this sort of scenario properly, so I don’t know if leaving the default mode for the parent directories is the best way or not. The obvious but more complicated alternative would be to call chmod() on all the new directories in a second

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2013-12-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19930 ___ ___ Python-bugs-list

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2013-12-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: os.makedirs() can't create a directory with cleared write or list permission bits for owner when parent directories aren't created. This is because for parent directories same mode is used as for final directory. Note that the mkdir utility creates parent

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2013-12-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +patch nosy: +loewis Added file: http://bugs.python.org/file33043/os_makedirs_mode.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19930

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2013-12-08 Thread Vajrasky Kok
Vajrasky Kok added the comment: Fails on Windows Vista. == FAIL: test_mode (__main__.MakedirTests) -- Traceback (most recent call last): File

[issue19930] os.makedirs('dir1/dir2', 0) always fails

2013-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Vajrasky. Now this check is skipped on Windows. -- Added file: http://bugs.python.org/file33047/os_makedirs_mode_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19930