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 Anders.Østhus
Recipients Anders.Østhus, brian.curtin, pitrou, tarek
Date 2011-02-12.21:12:57
SpamBayes Score 0.00066000933
Marked as misclassified No
Message-id <1297545177.96.0.407480066973.issue11202@psf.upfronthosting.co.za>
In-reply-to
Content
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 :)
History
Date User Action Args
2011-02-12 21:12:58Anders.Østhussetrecipients: + Anders.Østhus, pitrou, tarek, brian.curtin
2011-02-12 21:12:57Anders.Østhussetmessageid: <1297545177.96.0.407480066973.issue11202@psf.upfronthosting.co.za>
2011-02-12 21:12:57Anders.Østhuslinkissue11202 messages
2011-02-12 21:12:57Anders.Østhuscreate