Skip to content

Commit 069651d

Browse files
committed
Explain what copying as if files are opened as binary means
1 parent bcb339d commit 069651d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Doc/library/os.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,11 @@ as internal buffering of data.
809809
some filesystems could implement extra optimizations, such as the use of
810810
reflinks (i.e., two or more inodes that share pointers to the same
811811
copy-on-write disk blocks; supported file systems include btrfs and XFS)
812-
and server-side copy (in the case of NFS). The copy is done as if
813-
both files are opened as binary.
812+
and server-side copy (in the case of NFS).
813+
814+
The copy is done as if both files are opened in binary mode, meaning that
815+
this function will not convert encodings or line endings even if you have
816+
opened the files in text mode for that as described in :ref:`tut-files`.
814817

815818
The return value is the amount of bytes copied. This could be less than the
816819
amount requested.

0 commit comments

Comments
 (0)