Serhiy Storchaka added the comment:

There is a risk of race condition. One process can create a directory `file`, 
then other process fails to create a file with the same name `file`, then the 
first process removes directory `file`, then the second process handles 
PermissionError. The same is possible also with threads.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22107>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to