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

Reply via email to