GH-89727: Partially fix `shutil.rmtree()` recursion error on deep trees (#119634)
Make `shutil._rmtree_unsafe()` call `os.walk()`, which is implemented without recursion. `shutil._rmtree_safe_fd()` is not affected and can still raise a recursion error. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
B
Barney Gale committed
a150679f90c6e3f017bd75cac3b8f727063cc4aa
Parent: c22323c
Committed by GitHub <noreply@github.com>
on 5/29/2024, 8:11:30 PM