[issue11202] Win32: shutil.move does not inherit permissions

Antoine Pitrou report at bugs.python.org
Sat Feb 12 21:24:35 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> Ok.
> 
> But that makes the whole method inconsistent.
> 
> Basically, if it's on the same filesystem, rename the file, and thus
> not inheriting ACL. If it's on another use copy2, and inherit ACL.

I think you're misunderstanding copy2. It will copy the ACL from the
source file, not from the target directory or filesystem.
Actually, if you look at copy2's implementation, it's just copyfile()
followed by copystat().

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11202>
_______________________________________


More information about the Python-bugs-list mailing list