[issue40972] Add a recurse flag to Path.rmdir()

2020-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is virtually a duplicate of issue33498. shutil.rmtree() is very complex function. It is not trivial task to remove directories and files recursively in safe and efficient way. It needs also a way to customize errors handling. We do not want to duplica

[issue40972] Add a recurse flag to Path.rmdir()

2020-06-13 Thread Charles Machalow
New submission from Charles Machalow : I think it would make sense to add a recurse flag to the Path.rmdir() method. It would default to False (to allow for current behavior). If set to True, the method would act very similarly to shutil.rmtree() in that it would delete all files in the direc