GH-124985: Document that `pathlib.Path.copy()` uses copy-on-write. (#125861)

This commit is contained in:
Barney Gale 2024-11-05 18:43:43 +00:00 committed by GitHub
parent 8525c9375f
commit ff8349979c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -1592,6 +1592,11 @@ Copying, moving and deleting
This argument has no effect when copying files on Windows (where
metadata is always preserved).
.. note::
Where supported by the operating system and file system, this method
performs a lightweight copy, where data blocks are only copied when
modified. This is known as copy-on-write.
.. versionadded:: 3.14