Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
Concur with Karthikeyan. pathlib.Path provides an object oriented interface to file path operations and to low-level filesystem operations. rmtree() is a high-level and complex operation. Instead of adding more and more complex operations to the Path class we added support of Path (and more generally, path-like objects) in many other functions. ---------- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> pathlib.Path wants an rmtree method _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38499> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com