[issue33498] pathlib.Path wants an rmtree method

Serhiy Storchaka report at bugs.python.org
Thu Jan 10 10:43:43 EST 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I am against this. shutil provides higher level API than pathlib, and pathlib should not depend on shutil. pathlib.Path represents a path, and its methods usually does involve filesystem operations, or involve just a single filesystem operation. shutil.rmtree() is a complex operation that needs to perform several simple operations, and it should be together with other complex operations in the shutil module.

----------
nosy: +giampaolo.rodola, pitrou, tarek

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33498>
_______________________________________


More information about the Python-bugs-list mailing list