[New-bugs-announce] [issue24231] os.makedirs('/', exist_ok=True) fails on Darwin
Matthew Wedgwood
report at bugs.python.org
Mon May 18 19:23:41 CEST 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue24231>
_______________________________________
More information about the New-bugs-announce
mailing list