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 serhiy.storchaka
Recipients Marco Sulla, giampaolo.rodola, rhettinger, serhiy.storchaka, tarek
Date 2019-08-08.09:35:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565256936.3.0.112117354681.issue37791@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-08-08 09:35:36serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, giampaolo.rodola, tarek, Marco Sulla
2019-08-08 09:35:36serhiy.storchakasetmessageid: <1565256936.3.0.112117354681.issue37791@roundup.psfhosted.org>
2019-08-08 09:35:36serhiy.storchakalinkissue37791 messages
2019-08-08 09:35:36serhiy.storchakacreate