mirror of https://github.com/python/cpython
GH-124985: Document that `pathlib.Path.copy()` uses copy-on-write. (#125861)
This commit is contained in:
parent
8525c9375f
commit
ff8349979c
|
@ -1592,6 +1592,11 @@ Copying, moving and deleting
|
||||||
This argument has no effect when copying files on Windows (where
|
This argument has no effect when copying files on Windows (where
|
||||||
metadata is always preserved).
|
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
|
.. versionadded:: 3.14
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue