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.

Author giampaolo.rodola
Recipients giampaolo.rodola, noctiflore
Date 2018-06-12.10:09:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528798183.57.0.475983251502.issue30044@psf.upfronthosting.co.za>
In-reply-to
Content
This could be achieved at least on Windows with CopyFileEx [1] and on OSX with copyfile(3) + COPYFILE_ALL which copies ACLs (but not users/groups). These are (were, in case of CopyFileEx) exposed in https://github.com/python/cpython/pull/7160/. Such a new functionality would probably deserve a separate copy3() function but it would serve OSX and Windows only. I'm not sure how things would work on other POSIX platforms. 

[1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa363852(v=vs.85).aspx
[2] http://www.manpagez.com/man/3/copyfile/
History
Date User Action Args
2018-06-12 10:09:43giampaolo.rodolasetrecipients: + giampaolo.rodola, noctiflore
2018-06-12 10:09:43giampaolo.rodolasetmessageid: <1528798183.57.0.475983251502.issue30044@psf.upfronthosting.co.za>
2018-06-12 10:09:43giampaolo.rodolalinkissue30044 messages
2018-06-12 10:09:43giampaolo.rodolacreate