Message349229
Passing ignore_errors=True is not the same as catching and silencing OSError outside of the function. In the former case you continue removing other files in the directory even if you can't remove some of them. In the latter case you stop after the first failure.
onerror gives you even more flexibility. |
|
Date |
User |
Action |
Args |
2019-08-08 09:35:36 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, giampaolo.rodola, tarek, Marco Sulla |
2019-08-08 09:35:36 | serhiy.storchaka | set | messageid: <1565256936.3.0.112117354681.issue37791@roundup.psfhosted.org> |
2019-08-08 09:35:36 | serhiy.storchaka | link | issue37791 messages |
2019-08-08 09:35:36 | serhiy.storchaka | create | |
|