Giampaolo Rodola' <g.rod...@gmail.com> added the comment:

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/

----------
nosy: +giampaolo.rodola

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue30044>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to