This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: shutil.copyfile incomplete on NTFS
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, loewis, rupole
Priority: normal Keywords:

Created on 2006-09-16 05:13 by rupole, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg29842 - (view) Author: Roger Upole (rupole) Date: 2006-09-16 05:13
Files on NTFS 5 volumes can contain multiple data 
streams.  Copyfile currently just reads the default 
unnamed stream, losing document summary information
and any named streams that have been added to the file.
msg29843 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-09-16 17:29
Logged In: YES 
user_id=21627

copyfile indeed fails to copy a lot of attributes of the
file, e.g. the file owner and group are not copied, and
neither are the ACLs. Unfortunately, it is not possible to
implement a full copy; shutil.copyfile has always only
copied the file contents. To implement a full copy, more
Win32 would need to be exposed. Use the CopyFile function
from the Win32 extensions for a full copy.

Reclassifying this as a documentation bug: the documentation
should mention that this only copies the direct file contents.
msg59393 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-01-06 16:12
Clarified docs in r59779.
History
Date User Action Args
2022-04-11 14:56:20adminsetgithub: 43981
2008-01-06 16:12:49georg.brandlsetstatus: open -> closed
nosy: + georg.brandl
resolution: fixed
messages: + msg59393
2006-09-16 05:13:42rupolecreate