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

Martin Panter report at bugs.python.org
Fri Jun 10 02:07:57 EDT 2016


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 step.

Anyway, if we are going to make any change, it should be documented. And I would say the current patch changes behaviour, so is probably not applicable as a bug fix.

----------
nosy: +martin.panter

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19930>
_______________________________________


More information about the Python-bugs-list mailing list