Message371497
I'm disappointed to see this closed. For new (and old) users, it makes complete sense to have an rmtree method on the Path object itself.
If I'm using pathlib, I try not to delegate to os.<things> for file operations, since it also tends to seem more OO and clean to stick with the object methods. Same thought process for shutil for rmtree.
We already have things like owner() and group() that explicitly go import grp, pwd to do their job on Path objects. Why is shutil special with regards to using another piece of the standard library from pathlib? To me this request falls in the same boat as those functions; they were likely added for convenience and since it made sense.
I believe the very same holds true for the request to add rmtree(). |
|
Date |
User |
Action |
Args |
2020-06-14 07:48:31 | Charles Machalow | set | recipients:
+ Charles Machalow, pitrou, giampaolo.rodola, tarek, serhiy.storchaka, Aaron Hall, Dreami |
2020-06-14 07:48:31 | Charles Machalow | set | messageid: <1592120911.47.0.835248683166.issue33498@roundup.psfhosted.org> |
2020-06-14 07:48:31 | Charles Machalow | link | issue33498 messages |
2020-06-14 07:48:31 | Charles Machalow | create | |
|