diff options
author | CAM Gerlach <CAM.Gerlach@Gerlach.CAM> | 2022-06-09 13:55:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 13:55:06 (GMT) |
commit | a5ba0f4ebca5020f6c77718a20663e0ac6e194ac (patch) | |
tree | 955d4afbe49793d5fc3310741bc25f239963e901 /Doc/faq | |
parent | a365dd64c2a1f0d142540d5031003f24986f489f (diff) | |
download | cpython-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.rst | 10 |
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? |