This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author whitespacer
Recipients whitespacer
Date 2017-03-02.13:53:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488462813.87.0.464471853988.issue29694@psf.upfronthosting.co.za>
In-reply-to
Content
When pathlib mkdir is called with parents=True and some parent doesn't exists it recursively calls self.parent.mkdir(parents=True) after catching OSError. However after catching of OSError and before call to self.parent.mkdir(parents=True) somebody else can create parent dir, which will lead to FileExistsError exception.
History
Date User Action Args
2017-03-02 13:53:33whitespacersetrecipients: + whitespacer
2017-03-02 13:53:33whitespacersetmessageid: <1488462813.87.0.464471853988.issue29694@psf.upfronthosting.co.za>
2017-03-02 13:53:33whitespacerlinkissue29694 messages
2017-03-02 13:53:33whitespacercreate