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

Anders Østhus report at bugs.python.org
Sat Feb 12 22:12:57 CET 2011


Anders Østhus <grapz666 at gmail.com> added the comment:

Thank you for taking the time to explain it to me, but it still seems inconsistent to me.

I did a test with the functions copy, copy2, move, os.rename, copyfile, both on the same filesystem and another filesystem, and the result is:

Same filesystem:
	shutil.copy:		Inherit
	shutil.copy2:		Inherit
	shutil.move:		Original
	os.rename:		Original
	shutil.copyfile:	Inherit

Different filesystem:
	shutil.copy:		Inherit
	shutil.copy2:		Inherit
	shutil.move:		Inherit
	os.rename:		Inherit
	shutil.copyfile:	Inherit

On the same system, the result will differ if you move the file to a different location on the same filesystem, or if you move it to another filesystem.

But still, I'm happy. I'll just use copy/copy2 and then delete the original file afterwards :)

----------

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


More information about the Python-bugs-list mailing list