[issue25583] os.makedirs with exist_ok=True raises PermissionError on Windows 7^

Martin Panter report at bugs.python.org
Sun Nov 8 23:05:48 EST 2015


Martin Panter added the comment:

Daniel: your latest suggestions look like they introduce a race condition. What happens if another thread or process, perhaps also calling makedirs(), creates the directory just after isdir() says it doesn’t exist? Similar to Issue 1608579.

Perhaps the existing code comment needs to clarify that the exception handling is for a real race condition, not just an excuse to “be happy” :)

----------
components: +Windows
nosy: +martin.panter, paul.moore, steve.dower, tim.golden, zach.ware
stage:  -> needs patch
versions:  -Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25583>
_______________________________________


More information about the Python-bugs-list mailing list