mirror of
https://github.com/python/cpython.git
synced 2024-12-03 06:46:01 +08:00
bpo-26468: Doc: improve the documentation of shutil.copy2 when it can fail. (GH-13765)
This commit is contained in:
parent
995b5d38e7
commit
9585f46b97
@ -187,7 +187,8 @@ Directory and files operations
|
|||||||
However, this functionality is not available on all platforms.
|
However, this functionality is not available on all platforms.
|
||||||
On platforms where some or all of this functionality is
|
On platforms where some or all of this functionality is
|
||||||
unavailable, :func:`copy2` will preserve all the metadata
|
unavailable, :func:`copy2` will preserve all the metadata
|
||||||
it can; :func:`copy2` never returns failure.
|
it can; :func:`copy2` never raises an exception because it
|
||||||
|
cannot preserve file metadata.
|
||||||
|
|
||||||
:func:`copy2` uses :func:`copystat` to copy the file metadata.
|
:func:`copy2` uses :func:`copystat` to copy the file metadata.
|
||||||
Please see :func:`copystat` for more information
|
Please see :func:`copystat` for more information
|
||||||
|
Loading…
Reference in New Issue
Block a user