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

Antoine Pitrou report at bugs.python.org
Sat Feb 12 21:11:05 CET 2011


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

> According to the shutil doc page, neither copy or copy2 should do
> this. And since they do, and you say shutil.move is implemented using
> shutil.copy2, shouldn't files moved with shutil.move also then inherit
> the permissions?

There's a misunderstanding I think. shutil.move()'s main path uses
os.rename(). Only does it fall back on copy2() when rename() fails.

----------

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


More information about the Python-bugs-list mailing list