[docs] [issue12577] Misleading shutil.move docs regarding when os.rename is used

Senthil Kumaran report at bugs.python.org
Mon Jul 18 00:33:49 CEST 2011


Senthil Kumaran <senthil at uthcode.com> added the comment:

Should information on Windows behavior, which you experienced be included too?

How about - 

It uses :func:`os.rename` to perform the move. If that fails, for example
because src and dst are on different filesystems or in case of Windows where rename cannot be done if dst exists, fallback to copying src (with :func:`copy2`) to the dst and then removing src.

----------
nosy: +orsenthil

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


More information about the docs mailing list