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 Jeffrey.Kintscher
Recipients Jeffrey.Kintscher, dkg, giampaolo.rodola, jesse.farnham, serhiy.storchaka
Date 2019-05-26.04:05:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558843551.41.0.730548096515.issue29699@roundup.psfhosted.org>
In-reply-to
Content
I created pull request bpo-29699 to fix this issue. It adds an additional exception handler to ignore FileNotFoundError for most of the try blocks that already handle OSError.

I decided not to add it to the initial os.open() call. This should provide the same semantics as the "rm -r" shell command. It will fail with FileNotFoundError when foo is missing, which is the same behavior as "rm -r foo" returning "rm: foo: No such file or directory" when foo is missing. Similarly, "rm -rf foo" always succeeds and is equivalent to setting "ignore_errors=true" in the shutil.rmtree() call.
History
Date User Action Args
2019-05-26 04:05:51Jeffrey.Kintschersetrecipients: + Jeffrey.Kintscher, giampaolo.rodola, serhiy.storchaka, dkg, jesse.farnham
2019-05-26 04:05:51Jeffrey.Kintschersetmessageid: <1558843551.41.0.730548096515.issue29699@roundup.psfhosted.org>
2019-05-26 04:05:51Jeffrey.Kintscherlinkissue29699 messages
2019-05-26 04:05:51Jeffrey.Kintschercreate