GH-130614: pathlib ABCs: improve support for receiving path metadata (#131259)
In the private pathlib ABCs, replace `_WritablePath._write_info()` with `_WritablePath._copy_from()`. This provides the target path object with more control over the copying process, including support for querying and setting metadata *before* the path is created. Adjust `_ReadablePath.copy()` so that it forwards its keyword arguments to `_WritablePath._copy_from()` of the target path object. This allows us to remove the unimplemented *preserve_metadata* argument in the ABC method, making it a `Path` exclusive.
B
Barney Gale committed
563ab5cefe98d3a4a8f86eb46ca5aeaeaa5b120b
Parent: e82c2ca
Committed by GitHub <noreply@github.com>
on 3/16/2025, 6:11:20 AM