Message288801
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. |
|
Date |
User |
Action |
Args |
2017-03-02 13:53:33 | whitespacer | set | recipients:
+ whitespacer |
2017-03-02 13:53:33 | whitespacer | set | messageid: <1488462813.87.0.464471853988.issue29694@psf.upfronthosting.co.za> |
2017-03-02 13:53:33 | whitespacer | link | issue29694 messages |
2017-03-02 13:53:33 | whitespacer | create | |
|