[issue19921] Path.mkdir(0, True) always fails
Serhiy Storchaka
report at bugs.python.org
Sat Dec 7 21:37:27 CET 2013
Serhiy Storchaka added the comment:
The mkdir utility creates parent directories with mode 0o777 & ~umask.
$ mkdir -p -m 0 t1/t2/t3
$ ls -l -d t1 t1/t2 t1/t2/t3
drwxrwxr-x 3 serhiy serhiy 4096 Dec 7 22:30 t1/
drwxrwxr-x 3 serhiy serhiy 4096 Dec 7 22:30 t1/t2/
d--------- 2 serhiy serhiy 4096 Dec 7 22:30 t1/t2/t3/
So perhaps we should just use 0o777 mode for parent directories.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19921>
_______________________________________
More information about the Python-bugs-list
mailing list