Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40972>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to