summaryrefslogtreecommitdiffstats
path: root/Doc/faq
diff options
context:
space:
mode:
authorCAM Gerlach <CAM.Gerlach@Gerlach.CAM>2022-06-09 13:55:06 (GMT)
committerGitHub <noreply@github.com>2022-06-09 13:55:06 (GMT)
commita5ba0f4ebca5020f6c77718a20663e0ac6e194ac (patch)
tree955d4afbe49793d5fc3310741bc25f239963e901 /Doc/faq
parenta365dd64c2a1f0d142540d5031003f24986f489f (diff)
downloadcpython-a5ba0f4ebca5020f6c77718a20663e0ac6e194ac.zip
cpython-a5ba0f4ebca5020f6c77718a20663e0ac6e194ac.tar.gz
cpython-a5ba0f4ebca5020f6c77718a20663e0ac6e194ac.tar.bz2
Doc: Update references and examples of old, unsupported OSes and uarches (GH-92791)
Diffstat (limited to 'Doc/faq')
-rw-r--r--Doc/faq/library.rst10
1 files changed, 8 insertions, 2 deletions
diff --git a/Doc/faq/library.rst b/Doc/faq/library.rst
index b9e541c..85b04c9 100644
--- a/Doc/faq/library.rst
+++ b/Doc/faq/library.rst
@@ -483,8 +483,14 @@ including :func:`~shutil.copyfile`, :func:`~shutil.copytree`, and
How do I copy a file?
---------------------
-The :mod:`shutil` module contains a :func:`~shutil.copyfile` function. Note
-that on MacOS 9 it doesn't copy the resource fork and Finder info.
+The :mod:`shutil` module contains a :func:`~shutil.copyfile` function.
+Note that on Windows NTFS volumes, it does not copy
+`alternate data streams
+<https://en.wikipedia.org/wiki/NTFS#Alternate_data_stream_(ADS)>`_
+nor `resource forks <https://en.wikipedia.org/wiki/Resource_fork>`__
+on macOS HFS+ volumes, though both are now rarely used.
+It also doesn't copy file permissions and metadata, though using
+:func:`shutil.copy2` instead will preserve most (though not all) of it.
How do I read (or write) binary data?