cpython/Lib/pathlib
Barney Gale b251d409f9
GH-125413: Add private pathlib.Path method to write metadata (#130238)
Replace `WritablePath._copy_writer` with a new `_write_info()` method. This
method allows the target of a `copy()` to preserve metadata.

Replace `pathlib._os.CopyWriter` and `LocalCopyWriter` classes with new
`copy_file()` and `copy_info()` functions. The `copy_file()` function uses
`source_path.info` wherever possible to save on `stat()`s.
2025-02-26 21:07:27 +00:00
..
__init__.py GH-127807: pathlib ABCs: remove PathBase._unsupported_msg() (#127855) 2024-12-12 17:39:24 +00:00
_abc.py GH-125413: Add private pathlib.Path method to write metadata (#130238) 2025-02-26 21:07:27 +00:00
_local.py GH-125413: Add private pathlib.Path method to write metadata (#130238) 2025-02-26 21:07:27 +00:00
_os.py GH-125413: Add private pathlib.Path method to write metadata (#130238) 2025-02-26 21:07:27 +00:00
types.py GH-125413: Add pathlib.Path.info attribute (#127730) 2025-02-08 01:16:45 +00:00