Anders Østhus <grapz...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue11202>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to