Uh oh!
There was an error while loading. Please reload this page.
GH-73991: Rework pathlib.Path.copytree() into copy() - #122369
Conversation
Rename `pathlib.Path.copy()` to `_copy_file()` (i.e. make it private.) Rename `pathlib.Path.copytree()` to `copy()`, and add support for copying non-directories. This simplifies the interface for users, and nicely complements the upcoming `move()` and `delete()` methods (which will also accept any type of file.)
barneygale
commented
Jul 30, 2024
Making the old |
barneygale
commented
Aug 4, 2024
Hey @nineteendo, could you review this please, if you're up for it? Thanks in advance! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
barneygale
commented
Aug 11, 2024
Thank you for the review, very helpful! |
…n#122369) Rename `pathlib.Path.copy()` to `_copy_file()` (i.e. make it private.) Rename `pathlib.Path.copytree()` to `copy()`, and add support for copying non-directories. This simplifies the interface for users, and nicely complements the upcoming `move()` and `delete()` methods (which will also accept any type of file.) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Rename
pathlib.Path.copy()to_copy_file()(i.e. make it private.)Rename
pathlib.Path.copytree()tocopy(), and add support for copying non-directories. This simplifies the interface for users, and nicely complements the upcomingmove()anddelete()methods (which will also accept any type of file.)📚 Documentation preview 📚: https://cpython-previews--122369.org.readthedocs.build/