barneygale / pathlib-abc

Python base classes for rich path objects
Other
23 stars 1 forks source link

File transfer support #20

Open barneygale opened 6 months ago

barneygale commented 6 months ago

Add methods like PathBase.copy() and copytree() that support copying files and directories from one path object to another.

PathBase.copy() should:

PathBase.copytree() should:

Implementations in Path should use shutil when a os.PathLike argument is given, and call super() otherwise.