[issue1577] shutil.move() does not use os.rename() if dst is a directory

Facundo Batista report at bugs.python.org
Mon Dec 10 13:01:10 CET 2007


Facundo Batista added the comment:

I have another way:

* Check if the destination is a directory, and in such case make an
os.path.join(destination, originfile), and then use os.rename() with
this new destination.

What do you think? Do you think this way suffers from any multiplatform
issue?

More important: how can this be tested?

----------
nosy: +facundobatista

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1577>
__________________________________


More information about the Python-bugs-list mailing list