Skip to content

Commit

Permalink
pythonGH-124985: Document that pathlib.Path.copy() uses copy-on-write.
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Oct 22, 2024
1 parent 34653bb commit d92267a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,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


Expand Down

0 comments on commit d92267a

Please sign in to comment.