[issue40972] Add a recurse flag to Path.rmdir()
Serhiy Storchaka
report at bugs.python.org
Sun Jun 14 03:02:15 EDT 2020
Serhiy Storchaka <storchaka+cpython at gmail.com> 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 duplicate all this code in pathlib if shutil.rmtree() already supports path-like objects.
----------
nosy: +serhiy.storchaka
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> pathlib.Path wants an rmtree method
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40972>
_______________________________________
More information about the Python-bugs-list
mailing list