[issue1577] shutil.move() does not use os.rename() if dst is a directory
Raghuram Devarakonda
report at bugs.python.org
Mon Jan 28 22:56:52 CET 2008
Raghuram Devarakonda added the comment:
Hi Antoine,
You stated the following in a previous comment:
"Right now, shutil.move(src_dir, dst_dir) replaces dst_dir with src_dir
if dst_dir is empty, but moves src_dir inside dst_dir otherwise."
But my test shows differently. If dst_dir doesn't exist or if it is
empty, dst_dir is simply replaced with src_dir. If dst_dir is non-empty,
shutil.move() raises error. In which case did you find src_dir being
moved to dst_dir?
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1577>
__________________________________
More information about the Python-bugs-list
mailing list