Skip to content

Commit 0245cee

Browse files
Apply suggestion from @StanFromIreland
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent fd9e178 commit 0245cee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/shutil.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ On Solaris :func:`os.sendfile` is used.
541541
On Windows :func:`shutil.copyfile` uses a bigger default buffer size (1 MiB
542542
instead of 64 KiB) and a :func:`memoryview`-based variant of
543543
:func:`shutil.copyfileobj` is used, which is still reads and writes in a loop.
544-
:func:`shutil.copy2` uses native call ``CopyFile2`` on windows and it is the most
545-
efficient and support copy-on-write, but preserve the metadata.
544+
:func:`shutil.copy2` uses the native ``CopyFile2`` call on Windows, which is the most
545+
efficient method, supports copy-on-write, and preserves metadata.
546546

547547
If the fast-copy operation fails and no data was written in the destination
548548
file then shutil will silently fallback on using less efficient

0 commit comments

Comments
 (0)