GH-127807: pathlib ABCs: move private copying methods to dedicated class (#127810)
Move 9 private `PathBase` attributes and methods into a new `CopyWorker` class. Change `PathBase.copy` from a method to a `CopyWorker` instance. The methods remain private in the `CopyWorker` class. In future we might make some/all of them public so that user subclasses of `PathBase` can customize the copying process (in particular reading/writing of metadata,) but we'd need to make `PathBase` public first.
B
Barney Gale committed
8d9f52a7be5c09c0fd4423943edadaacf6d7f917
Parent: f5ba74b
Committed by GitHub <noreply@github.com>
on 12/22/2024, 2:22:08 AM