[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
>>>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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



[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('/', exist_ok=True) to fail on Darwin but succeed on Linux.

--
components: Library (Lib)
messages: 243501
nosy: mew
priority: normal
severity: normal
status: open
title: os.makedirs('/', exist_ok=True) fails on Darwin
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24231
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
versions: +Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24231
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mkdir(2) so one could argue it's an implementation 
bug.  It is a somewhat unusual case, though, as I doubt you would ever run into 
a situation where you really needed to create '/' from a process :=)  Still ...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24231
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com