[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2019-07-17 Thread SilentGhost
Change by SilentGhost : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2019-07-16 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: This issue appears to have been fixed: Python 3.7.3 (default, May 1 2019, 00:00:47) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.makedirs('/', exist_ok=True) >>>

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2019-06-05 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread R. David Murray
R. David Murray added the comment: This should (in theory at least) be something we test in our test suite, so I'm surprised by this result. If you run the test suite do you get any failures? -- nosy: +r.david.murray ___ Python tracker

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread Matthew Wedgwood
New submission from Matthew Wedgwood: On Darwin, os.mkdir('/') raises IsADirectory. On Linux, the same call raises FileExistsError. The implementation for os.makedirs() in Python 3.2+ checks only for the latter when evaluating the exists_ok parameter. This causes os.makedirs('/',

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread Ned Deily
Ned Deily added the comment: This appears to be a BSD-ism: I get the same result on FreeBSD 10 as with OS X 10.10. For whatever reason, mkdir('/') returns IsADirectoryError while mkdir('/other/existing/directory') returns FileExistsError. -- nosy: +ned.deily stage: - needs patch

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread R. David Murray
R. David Murray added the comment: Ah! That's why our tests don't catch it. Is it limited to '/', or is it any (mounted) mount point? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24231

[issue24231] os.makedirs('/', exist_ok=True) fails on Darwin

2015-05-18 Thread Ned Deily
Ned Deily added the comment: It doesn't seem to be true for other mount points; the ones I tried raise FileExistsError. I suppose one could dig into the OS sources. I see that none of the FreeBSD or OS X mkdir man pages nor the POSIX 2013 spec document EISDIR as an expected error from