On Mon, Nov 23, 2020 at 11:37 AM Todd <toddr...@gmail.com> wrote:
>> It might be worth looking at this as "making shutil support Path
>> objects", and then have the Path objects grow methods that delegate to
>> shutil. That'd avoid duplicating logic eg for rmtree and copyfile.
>
>
> shutil already supports Path objects.  And yes, I was planning to delegate 
> the logic to existing functions there or in "os".

Oh, okay. That should make this a lot easier then. +1. I wasn't sure.

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/FTCGJAITMNMB3IMZGFIX5G36TTWFSPSA/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to