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 <rep...@bugs.python.org> <http://bugs.python.org/issue19921> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com